Remove seconds from the TIME function?
Posted
by
user1876032
on Stack Overflow
See other posts from Stack Overflow
or by user1876032
Published on 2012-12-07T04:53:50Z
Indexed on
2012/12/07
5:03 UTC
Read the original article
Hit count: 86
Okay so have a database that uses the time functions for a list of events and then displays the data as:
echo "<b>Time Frame:";
echo "$time_start"; echo " - "; echo "$time_end";
Although that displays the time as 11:00:00 if i want the time to be 11:00 am. Is there anyway to make this time display as a standard "11:00"? and also if in the mysql datababse enter it as military time (ex. 13:00) to make it display 1:00pm?
I have tried many things. Please help.
© Stack Overflow or respective owner