How does one change 13:00 to 1:00 in PHP?
All of my times are showing up in military time.
Time Question
Moderator: General Moderators
- voodoo9055
- Forum Commoner
- Posts: 51
- Joined: Sat Apr 26, 2003 3:27 pm
- Location: Montgomery, AL
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
- voodoo9055
- Forum Commoner
- Posts: 51
- Joined: Sat Apr 26, 2003 3:27 pm
- Location: Montgomery, AL
For example:
Code: Select all
<? echo date("d M Y H:i", $f_recordї timesent ]); ?>- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
Have a read of this for generating dates in the format you want, you just need to change slightly how you are using the date() function:
http://www.php.net/manual/en/function.date.php
And read this to find out why you should be quoting array element names:
http://www.php.net/manual/en/language.t ... rray.donts
Mac
http://www.php.net/manual/en/function.date.php
And read this to find out why you should be quoting array element names:
http://www.php.net/manual/en/language.t ... rray.donts
Mac
- voodoo9055
- Forum Commoner
- Posts: 51
- Joined: Sat Apr 26, 2003 3:27 pm
- Location: Montgomery, AL