Page 1 of 1
DATE AND TIME FORMAT
Posted: Fri May 10, 2013 4:40 am
by louiegiezer
how can i add am/pm in my time....
i try this one '%d/%m/%Y %H:%i:%s A' but it doesn't work...
problem solved.... i change the A into %p...
Re: DATE AND TIME FORMAT
Posted: Sat May 11, 2013 10:04 am
by killfrog47
Here is what I have for the news posting area on the site im building for a client.
echo 'Posted: ' . date("g:i a F j, Y ", strtotime($row["datetime"]));
The "datetime" Is the name of the db table storing the time. The output for that is
Posted: 10:57 pm May 7, 2013
Re: DATE AND TIME FORMAT
Posted: Fri May 24, 2013 2:58 pm
by louiegiezer
thanks dude... that is much better...
Re: DATE AND TIME FORMAT
Posted: Sun Jun 02, 2013 6:10 am
by killfrog47
louiegiezer wrote:thanks dude... that is much better...
No problem buddy =)