note 102310 deleted from function.date by danbrown
| From: | danbrown@php.net | Date: | Tue, 08 Feb 2011 12:27:17 +0000 |
| Subject: | note 102310 deleted from function.date by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-176763@lists.php.net to get a copy of this message | ||
Note Submitter: frans
----
@info at anu3d dot info 07-Feb-2011 04:18
You are wrong:
<?php echo date("Y-m-d h:m:s",$i); ?>
should be
<?php echo date("Y-m-d h:i:s",$i); ?>
From the documentation:
m Numeric representation of a month, with leading zeros
i Minutes with leading zeros