note 102351 deleted from function.date by thiago
| From: | thiago@php.net | Date: | Thu, 10 Feb 2011 12:57:02 +0000 |
| Subject: | note 102351 deleted from function.date by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-176852@lists.php.net to get a copy of this message | ||
Note Submitter: betoaih at hotmail dot com
----
@ info at anu3d dot info
Your code is giving the wrong output because you have misused the second "m" in your date
string format. "m" is used to output the month, not minutes. To output the minutes with 2
digits, you should use "i" instead.
<?
echo date("Y-m-d H:i:s",$i);
?>
Regards