note 81352 deleted from function.strtotime by danbrown

From: Date: Tue, 02 Dec 2008 15:15:21 +0000
Subject: note 81352 deleted from function.strtotime by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-147552@lists.php.net to get a copy of this message
Note Submitter: php at bucksvsbytes dot com ---- The phrase "about any English textual datetime description" is misleading. The GNU Date Input Formats syntax is actually quite limited and, counterintuitively, some commonly used formats result in incorrect or invalid dates that confound users. In particular, the commonly used m-d-y format does not work. 2-23-08 is invalid! It would be helpful to list the allowed date formats in the documentation rather than just by reference to the GNU docs: for numeric months the only valid formats are: y-m-d m/d/y m/d for text months the only valid formats are: d month y d month month d y d-month-y month d Although the GNU doc says leading zeros are required for numbers less than 10 this does not seem to be necessary (5/7/8 is same as 05/07/08).

« previous php.notes (#147552) next »