note 21481 added to function.strtotime

From: Date: Tue, 14 May 2002 19:37:40 +0000
Subject: note 21481 added to function.strtotime
Groups: php.notes 
Request: Send a blank email to php-notes+get-30642@lists.php.net to get a copy of this message
in case anyone cares, there are only three date formats that should be promoted .. you can never be sure what a user will use but, if you are converting a date, you should be convert to one of the following: Y-m-d (ISO 8601, international standard) d.m.Y (DIN 5008 / german, deprecated) m/d/Y (american colloquial, deprecated) these are the only valid date formats that should be used -- anything else, such as the british "d/m/Y" or using the american format with dashes, as a user above was suggesting, is just annoying and confusing .. your customers may use these annoying dates but, please, have some pity on your fellow programmers and do not write code that relies on non-standard date formats ! thank you -- http://www.php.net/manual/en/function.strtotime.php http://master.php.net/manage/user-notes.php?action=edit+21481 http://master.php.net/manage/user-notes.php?action=delete+21481 http://master.php.net/manage/user-notes.php?action=reject+21481

« previous php.notes (#30642) next »