I have a date '2019-05-08T22:15:00-0400'. I want to compare this date with the current date and time . if the above date and time is less than current date and time then i have to do something .
My code is :-
if(moment('2019-05-08T13:00:00-0400') < moment()){
//do something
}
But it returns false .