The topic about says it all. I'm trying to get events onto a calendar in the right order but SQL is sorting them so they come out in this order:
10:30 AM
11:31 PM
12:00 AM
1:30 PM
2:00 PM
9:00 AM
9:00 AM
9:00 AM
I'm currently storing these in a varchar field and sorting with ORDER BY timeofday ASC. Any assistance on this problem would be greatly appreciated.
Any ideas?