How to tell if string time-A is before time-B?
Posted
by John Isaacks
on Stack Overflow
See other posts from Stack Overflow
or by John Isaacks
Published on 2010-05-18T15:26:47Z
Indexed on
2010/05/18
15:40 UTC
Read the original article
Hit count: 164
JavaScript
|jQuery
if I have 4 variables
startTime; endTime; startMerid; endMerid;
startMarid and endMarid are either going to be 'AM' or 'PM'.
but startTime and endTime are going to be strings like 'dd:dd'
so it may be start:12:30 PM
and end:5:30 PM
How can I validate that the end time is not before the start time?
Thanks!!
© Stack Overflow or respective owner