Ask about a PHP problem here.
louiegiezer
Posts: 57 Joined: Fri Oct 21, 2011 11:31 am
Contact:
Post
by louiegiezer » Fri May 10, 2013 4:40 am
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...
killfrog47
Posts: 106 Joined: Tue Mar 12, 2013 2:52 am
Location: Tempe, AZ
Contact:
Post
by killfrog47 » Sat May 11, 2013 10:04 am
Here is what I have for the news posting area on the site im building for a client. [syntax=php]echo 'Posted: ' . date("g:i a F j, Y ", strtotime($row["datetime"]));[/syntax] The "datetime" Is the name of the db table storing the time. The output for that is
Posted: 10:57 pm May 7, 2013
louiegiezer
Posts: 57 Joined: Fri Oct 21, 2011 11:31 am
Contact:
Post
by louiegiezer » Fri May 24, 2013 2:58 pm
thanks dude... that is much better...
killfrog47
Posts: 106 Joined: Tue Mar 12, 2013 2:52 am
Location: Tempe, AZ
Contact:
Post
by killfrog47 » Sun Jun 02, 2013 6:10 am
louiegiezer wrote: thanks dude... that is much better...
No problem buddy =)