I have two date in which one is dd-mm-yyyy hh:mm format and another in dd-mm-yyyy (D1) format fristly i split the dd-mm-yyyy hh:mm fo
dd-mm-yyyy hh:mm
dd-mm-yyyy (D1)
var now = new Date(); var end = new Date(//some other date hear); if(now>end) { console.log('now=',now); } else { console.log('end=',end); }