note 98878 deleted from function.strtotime by derick

From: Date: Sun, 14 Dec 2014 11:33:59 +0000
Subject: note 98878 deleted from function.strtotime by derick
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-201166@lists.php.net to get a copy of this message
Note Submitter: prajo74 at gmail dot com ---- Take Care: strtotime() may not add months properly. The out put may not be as expected. <?php echo '<br />'.date("Y-m-d", strtotime('+1 month', mktime(0,0,0,1,31,2010))); ?> PHP Output - 2010-03-03 (Version 5.3.2) (Not Expected) MySQL Output while adding 1 month to 2010-01-31 will be 2010-02-28 (As Expeced)

« previous php.notes (#201166) next »