I was trying to compare two dates and time
se_time = 2017/05/16 17:41:47
curr_date = 2017/5/16 12:42:6
The result of "console.log(curr_date < se_time)" is false should not it be true?
I was trying to compare two dates and time
se_time = 2017/05/16 17:41:47
curr_date = 2017/5/16 12:42:6
The result of "console.log(curr_date < se_time)" is false should not it be true?
You have to create the date object first, you cannot compare the strings as they are.
var date1 = new Date('2011-04-12T10:20:30Z');
var date2 = new Date('2011-04-11T10:20:30Z');
console.log(date1>date2);//true