Jump to content

Time help please


topflight

Recommended Posts

Hello I have some columns where the time format is incorrect lets say that the time is 17:30 will in the database it will show 1730 or another example lets say that the time was suppose to be 6:30 instead it is 630. I would go in and edit each one of them except their is 15,000 rows, so may someone please tell me on how I can fix this problem thanks.

Link to comment
https://forums.phpfreaks.com/topic/199625-time-help-please/
Share on other sites

Well, you may need to change the type in your database if the column isn't of a string type.

 

I'm not going to write any example code. They're just 2 simple UPDATE queries. It's really not hard. Try it out and if you have troubles, then I'll consider it. Look up the functions I mentioned. There are examples on the MySQL site if you don't know how to use them.

Link to comment
https://forums.phpfreaks.com/topic/199625-time-help-please/#findComment-1050563
Share on other sites

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.