note 83726 deleted from function.mktime by mgf

From: Date: Mon, 09 Jun 2008 14:02:40 +0000
Subject: note 83726 deleted from function.mktime by mgf
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-140273@lists.php.net to get a copy of this message
Note Submitter: thijn Reason: bad code ---- I think it's also important to note that a leading zero can result in strange behaviour. For example: <?php echo date("M-d-Y", mktime(0, 0, 0, 06, 09, 2008)); ?> The above returns: May-31-2008 instead of June-9-2008 So always use without a leading zero! <?php echo date("M-d-Y", mktime(0, 0, 0, 6, 9, 2008)); ?>

« previous php.notes (#140273) next »