Jump to content

displaying mysql TIME's in php as just hours and minutes


unistake

Recommended Posts

Hi all,

I have some times stored in mysql as a TIME.

All of the times are in hours and minutes and do not incude seconds. When I retrieve the times from the database they are displayed like 03:22:00 - instead I just want them to be 03:22.

Is there a simple script that does this idea.

 

if mysql data = time change to hours and minutes.

I have 4 bits of data that need changing once retrieved.

 

Thanks for they help guys.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.