I'm working on a calendar/planner web app and I need to compare the start and end times of events before I store them in my DB. An event can only have a range of one day and between 8am and midnight. The start time always has to take place before the end time.
The post values come from the form in the following format hh:mm:ss
(12:14:00
) etc.. so I can store them in my database without much hassle. Is there any way I can compare these times?
Thanks a lot!