note 98476 modified in function.strtotime by danbrown
| From: | danbrown@php.net | Date: | Sun, 09 Jan 2011 16:55:00 +0000 |
| Subject: | note 98476 modified in function.strtotime by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-175569@lists.php.net to get a copy of this message | ||
Apparently, somebody has decided that US-centric dates use '/' as separator, while
Euro-centric use '-'.
Compare output of:
<?php
echo date('F d Y', strtotime('5-1-2010'));
echo date('F d Y', strtotime('5/1/2010'));
?>
--was--
Apparently, somebody has decided that US-centric dates use '/' as separator, while
Euro-centric use '-'.
Compare output of:
echo date('F d Y', strtotime('5-1-2010'));
echo date('F d Y', strtotime('5/1/2010'));
http://php.net/manual/en/function.strtotime.php