note 49422 deleted from function.strtotime by derick
| From: | derick@php.net | Date: | Sun, 14 Aug 2005 11:57:32 +0000 |
| Subject: | note 49422 deleted from function.strtotime by derick | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-93601@lists.php.net to get a copy of this message | ||
Note Submitter: bruce dot drummond at tribalinternet dot co dot uk
----
Just a comment that the strtotime function supports American date format before it supports English
date format.
$input = "02/01/2000";
$time = strtotime($input);
$output = date("Ymd", $time);
For the example date above, the output will be 20000201.
However, for the 29th January 2000 (29/01/2000) the output is 20020501
so it assumes mm/dd/yyyy rather than dd/mm/yyyy