note 102351 deleted from function.date by thiago

[email protected]
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.