rswyatt
03-15-2004, 02:19 PM
I'm posting this in this forum and the MySQL forum...
Here is the scenario...
I have a table that has two columns departure, arrive... They are VARCHAR fields and so not stored with any timestamp or anything, just plain old strings.
Anywho... SOME of the values are in AM/PM format... like... 9:30AM or 9:30PM. SOME of the values are in 24-Hour format...
I NEED to get everything into 24-Hour format - and have 11,000 records to process... Don't want to do each one manually <G>.
I need the items that are like 9:30AM to end up as 09:30 and those like 9:30PM to be 21:30..
I'm racking my brain to come up with a PHP script and I think I'm giving up until someone sparks me with a hint. :-)~
Thanks,
~Rich
Here is the scenario...
I have a table that has two columns departure, arrive... They are VARCHAR fields and so not stored with any timestamp or anything, just plain old strings.
Anywho... SOME of the values are in AM/PM format... like... 9:30AM or 9:30PM. SOME of the values are in 24-Hour format...
I NEED to get everything into 24-Hour format - and have 11,000 records to process... Don't want to do each one manually <G>.
I need the items that are like 9:30AM to end up as 09:30 and those like 9:30PM to be 21:30..
I'm racking my brain to come up with a PHP script and I think I'm giving up until someone sparks me with a hint. :-)~
Thanks,
~Rich