Hello,
Following code snippet demonstrates how data comparison is done using JavaScript.
var dtPrev = new Date();
dtPrev.setFullYear(2100, 0, 14);
var dtToday = new Date();
if (dtPrev > dtToday) {
alert("Today is before 14th January 2100");
} else {
alert("Today is after 14th January 2100");
}
Regards,