|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-01-12 14:02 UTC] michael at tapinternet dot com
echo date("m/d/Y <br> h:i A",$filemodified);
used to work in earlier versions (4.0.1?)
4.0.4pl1 it doesn' work.
same line above in 4.0.4pl1 produces
01/12/2001 01:825898547 PM
with capitalized BR tag, it's even different, but still not right.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 06:00:01 2025 UTC |
The formatting characters B (swatch internet time) and r (rfc-formatted date) have been added. The first argument to date() should always include only date formatting characters. You want echo date("m/d/Y",$filemodified)." <br> ".date("h:i A",$filemodified);