About
Pricing
Community
Teams
Start Free Trial
Log in
t3chguy
asked on
7/11/2012
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.
PHP
2
1
Last Comment
Ray Paseur
8/22/2022 - Mon
Ray Paseur
7/12/2012
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
Ray Paseur
7/12/2012
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
https://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/A_201-Handling-date-and-time-in-PHP-and-MySQL.html