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
You should look into strtotime:
echo date("D, M j, Y", strtotime("FIRST DAY OF MAY 2012")); // Tue, May 1, 2012 echo date("D, M j, Y", strtotime("last DAY june 2012")); // gotcha! using June. // Thu, May 31, 2012