Page 1 of 1

24-12 hr time conversion

Posted: Fri Oct 31, 2003 2:41 am
by jolan_lars
i needed to output a timestamp field from my database which is in the 24 format, "hh:mm:ss".

How do i show it in my page in such a way that the output is like
date ("h:i:s A") or a 12 hour format with the meridiem?

thanks is advance... :roll:

Posted: Fri Oct 31, 2003 3:19 am
by twigletmac
What database do you use?

Mac

Posted: Fri Oct 31, 2003 3:45 am
by jolan_lars
oh, it's mysql....

Posted: Fri Oct 31, 2003 4:38 am
by m3mn0n