note 17590 added to function.date
| From: | rogerio at intercode dot com dot br | Date: | Sat, 15 Dec 2001 20:22:48 +0000 |
| Subject: | note 17590 added to function.date | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-22848@lists.php.net to get a copy of this message | ||
Be carefull when adding or substracting months in date:
$lastmonth = mktime (0,0,0,date("m")-1,date("d"),date("Y"));
If the day is the 30th or 31st it will not work.
--
http://www.php.net/manual/en/function.date.php
http://master.php.net/manage/user-notes.php?action=edit+17590
http://master.php.net/manage/user-notes.php?action=delete+17590
http://master.php.net/manage/user-notes.php?action=reject+17590