I have problem in php find start date & end date of month & year , when i know the year and month ?
ex:
input - > year = 2011 , month = 0
PHP may have a more elegant way of doing this, but if you want a generic algorithm, here's what you need to do...
All months other than February have a fixed number of days. February has 29 only when it's a leap year. Here are the rules to check if it's a leap year: