Link to home
Start Free TrialLog in
Avatar of t3chguy
t3chguyFlag for United States of America

asked on

Getting a count of weekdays per month

Given a date '2012-07-01', I need a function to get a count of the number of weekdays in July.

This needs to be easy enough to use for each month of the year using variables I have set up for a fiscal year.
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

Please see this article.  This question and much more is answered there.  The practical examples will show you a way to do this.
https://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/A_201-Handling-date-and-time-in-PHP-and-MySQL.html
ASKER CERTIFIED SOLUTION
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial