SyntaxFix
Write A Post
Hire A Developer
Questions
This a much more elegant way to get the end of the month:
$thedate = Date('m/d/Y'); $lastDayOfMOnth = date('d', mktime(0,0,0, date('m', strtotime($thedate))+1, 0, date('Y', strtotime($thedate))));