how do I compute the business days in a week given the parameters: start date, end date and current week? The duration of the range for the start date and end date may go over a year.
edit:
thanks for the welcome! business days are from mon-fri.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
the code bellow displays only business days between two dates :
date(‘N’,$sometimestamp) gives you the numeric representation of the day of the week : 1 (for Monday) through 7 (for Sunday)
http://www.php.net/manual/en/function.date.php