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

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

}

To check whether given date is less than current date
Tagged on:     

Leave your comment

  • http://www.stevemcdaniel.com Steve

    Thanks for this it saved me from having to look it up!