Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ############################################################################################################
- // 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.
- ############################################################################################################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement