note 70885 added to function.strtotime
| From: | bad at php dot com | Date: | Thu, 02 Nov 2006 16:41:37 +0000 |
| Subject: | note 70885 added to function.strtotime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-119318@lists.php.net to get a copy of this message | ||
pzi42 - your solution won't work in months like january when it has to go back to the 28th of
febuary. the simplest solution I can think of to fix the problem of day 31 is to avoid using PHP
all together and use a SQL query like this:
SELECT DATE_ADD(
date , INTERVAL 1 MONTH );
----
Server IP: 216.194.113.175
Probable Submitter: 24.123.89.237
----
Manual Page -- http://www.php.net/manual/en/function.strtotime.php
Edit -- https://master.php.net/note/edit/70885
Del: integrated -- https://master.php.net/note/delete/70885/integrated
Del: useless -- https://master.php.net/note/delete/70885/useless
Del: bad code -- https://master.php.net/note/delete/70885/bad+code
Del: spam -- https://master.php.net/note/delete/70885/spam
Del: non-english -- https://master.php.net/note/delete/70885/non-english
Del: in docs -- https://master.php.net/note/delete/70885/in+docs
Del: other reasons-- https://master.php.net/note/delete/70885
Reject -- https://master.php.net/note/reject/70885
Search -- https://master.php.net/manage/user-notes.php