I'm trying to compare time a and time b. My JavaScript looks like this
var a ="02/08/2016 9:00 AM";
var b ="02/08/2016 11:20 PM";
if (b<a || b==a){
alert("End time is before or same as Start time.");
}
else{
alert("Start time is before End time.")
}
After I run this code, it tells me that "The end time is before or same as the start time"? I thought with the values of a and b that I set, it should the other way around?