Hello, I was wondering if there were any PHP functions that could get the amount of days in a month, aswell as what position the first and last days are (So is the 1st on Wednesday or...)
I am basically trying to make a Calendar System.
Using mysql to get the dates may be the easiest way, check out this page for full info:
http://www.mysql.com/doc/D/a/Date_and_time_functions.html
SC:
But there's no need to reinvent the wheel. Check out Monte Ohrt Date::Calc class in the PEAR repository. Probably in your PHP distribution.
Or just use the 't' option in the date() function, no PEAR required at all.
True, but I was thinking of the calendar system as a whole...