Last day of the month

Here’s one line of code to get the last day of a month:

$last_day = date(‘t’, mktime(0, 0, 1, $month_variable, 1, $year_variable));

How much more difficult do you want it to be ???

This entry was posted on Monday, December 29th, 2008 at 11:09 am and is filed under PHP. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply