note 40541 added to function.cal-days-in-month
| From: | ms_phitt at yahoo dot NOSPAM dot com | Date: | Sun, 07 Mar 2004 06:43:41 +0000 |
| Subject: | note 40541 added to function.cal-days-in-month | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-66376@lists.php.net to get a copy of this message | ||
I just used the date function's "t" option, which gives you the total number of days
in a date's month. Range is from "28" to "31".
$lastdate = date("t", mktime(0, 0, 0, $month, $date, $year));
----
Manual Page -- http://www.php.net/manual/en/function.cal-days-in-month.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+40541
Delete -- http://master.php.net/manage/user-notes.php?action=delete+40541&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+40541&report=yes
Search -- http://master.php.net/manage/user-notes.php