datetime - PHP date format, AM and PM reversed -
I am echoing the date with the following code:
If I add it at 1:50 then it shows: 1:50 am When the Prime Minister is echoed instead of showing it.
I'm stumped on this one. Any ideas?
Also entering dates in the form of a date:
'catch_date' = & gt; Date ('YMD H: I: S')
You use the wrong format Are there.
From: -
One hour 12 hour format with H. zeros 01 to 12 h 14 hours leading with hour zero format 00 23
So you need to change your code: -
'catch_date' = & gt; Date ('Y-M-DH: I: S')
Comments
Post a Comment