note 102351 deleted from function.date by thiago
| Newsgroups | php.notes |
|---|---|
| Message-ID | <[email protected]> |
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