############################################################################################################
// Get the last day of current or set month
$aDate = "2009-11-23";
echo date("Y-m-t", strtotime($aDate));
t = number of days in a month, you want the year, to account for variations, such as a leap year.
############################################################################################################
Comments