var firstDate=new Date();
firstDate.setFullYear(start[0],(start[1] - 1 ),start[2]);
var secondDate=new Date();
secondDate.setFullYear(end[0],(end[1] - 1 ),end[2]);
if(firstDate > secondDate)
{
alert("first date is greater");
}
else
{
alert("second date is greater");
}
No comments:
Post a Comment