function IslessThanCurrentYear(year)
{
var d = new Date();
currentyear = d.getFullYear();

if (year>currentyear)
{
return false;
}
else
{
return true;
}

}

One thought on “To check whether given date is less than current date”

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.