I have the following :
var fit_start_time = $("#fit_start_time").val(); //2013-09-5
var fit_end_time = $("#fit_end_time").val(); //2013-09-10
if(Date.parse(fit_start_time)>=Date.parse(fit_end_time)){
alert("Please select a different End Date.");
}
The above code doesn't work. Is there any other solution to the above one?
formatting date as per Where can I find documentation on formatting a date in JavaScript? also dint work for me.