note 68818 added to function.strtotime
| From: | php-general at lists dot php dot net | Date: | Fri, 11 Aug 2006 20:46:18 +0000 |
| Subject: | note 68818 added to function.strtotime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-115809@lists.php.net to get a copy of this message | ||
If you are having problems with strtotime not recognizing your date try using :
strtotime(str_replace('-','/',$your_date)).
On my system strtotime doesn't seem to understand that 10-01-2006 is a date but happily accepts
10/01/2006
Hope this helps some of you.
----
Server IP: 216.194.113.175
Probable Submitter: 65.167.19.165
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.strtotime.php
Edit -- https://master.php.net/note/edit/68818
Del: integrated -- https://master.php.net/note/delete/68818/integrated
Del: useless -- https://master.php.net/note/delete/68818/useless
Del: bad code -- https://master.php.net/note/delete/68818/bad+code
Del: spam -- https://master.php.net/note/delete/68818/spam
Del: non-english -- https://master.php.net/note/delete/68818/non-english
Del: in docs -- https://master.php.net/note/delete/68818/in+docs
Del: other reasons-- https://master.php.net/note/delete/68818
Reject -- https://master.php.net/note/reject/68818
Search -- https://master.php.net/manage/user-notes.php