Re: get the month's last day
| From: | Larry E . Ullman | Date: | Sat, 10 Jul 2004 14:44:55 +0000 |
| Subject: | Re: get the month's last day | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-190134@lists.php.net to get a copy of this message | ||
You could also use the date() function with the t parameter. Of course, that also requires a timestamp... Larryhow can i retrieve the last day of the month? like 31 - Jul, 30 - Jun , 28 - Feb<?php $month = 8; $year = 2003; $lastdayofmonth = mktime(12,0,0,$month+1,0,$year); ?>