Return to Snippet

Revision: 55796
at February 22, 2012 23:46 by bluecap


Initial Code
<?php

// Last day of current month
echo date('t');

// Last day of specified month
date('m/t/Y', mktime(0, 0, 0, 6, 1, 2012));

?>

Initial URL

                                

Initial Description
Easy way to get the last day of a month in PHP.

Initial Title
Get last day of month

Initial Tags

                                

Initial Language
PHP