note 104938 added to function.date-create

From: Date: Sun, 17 Jul 2011 11:12:10 +0000
Subject: note 104938 added to function.date-create
Groups: php.notes 
Request: Send a blank email to php-notes+get-181624@lists.php.net to get a copy of this message
You should also be aware that DateTime has very lax date validation rules. It appears that all months have a maximum of 31 days. For example, these will work fine: <?php $test = new DateTime('02/31/2011'); $test = new DateTime('06/31/2011'); ?> We all know that these dates are not real and are invalid so I think a good idea is to do some further validation on dates before creating a DateTime object with them. ---- Server IP: 87.124.126.105 Probable Submitter: 80.0.179.149 (proxied: 80.0.179.149) ---- Manual Page -- http://www.php.net/manual/en/function.date-create.php Edit -- https://master.php.net/note/edit/104938 Del: integrated -- https://master.php.net/note/delete/104938/integrated Del: useless -- https://master.php.net/note/delete/104938/useless Del: bad code -- https://master.php.net/note/delete/104938/bad+code Del: spam -- https://master.php.net/note/delete/104938/spam Del: non-english -- https://master.php.net/note/delete/104938/non-english Del: in docs -- https://master.php.net/note/delete/104938/in+docs Del: other reasons-- https://master.php.net/note/delete/104938 Reject -- https://master.php.net/note/reject/104938 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#181624) next »