How can I make 13:00:00 convert to 1:00 PM? Thanks Nick
Have a look at the date functions
Out of curiosity.. Why do you call this military time? Don't they in the militaru use 13.00 ?
J.
function convert($time){ $hour=substr($time,0,2); $minute=substr($time,3,2); $seconds=substr($time,6,2); return date("g:i A", mktime($hour,$minute,$seconds)); } echo convert('13:00:00');
Leatherback - over here in America we use military time as a generic term for whatever time uses 13-24 to indicate p.m. hours.
Oh, yeah, I forgot about that military based 'free' country.
🙂