Hi, I am writing an app that allows people to schedule things for certain times and then displays them. The time of the event is stored in the database as an sql TIME, because there are things im doing in the DB that need this structure.
However, on the output page i want the time to be in 12:00 am/pm format, but i dont want to run a conversion script every time i step through the database output loop. i dont want this while (database loop){ convert to clean time output event info, with clean time }
cause i think it is too much strain and unneccesary. can anyone think of a way to do this better short of storing the time in the db twice, once in 24 hour and once in 12. any suggestions would be greatly appreciated.