function IslessThanCurrentYear(year)
{
var d = new Date();
currentyear = d.getFullYear();
if (year>currentyear)
{
return false;
}
else
{
return true;
}
}
function IslessThanCurrentYear(year)
{
var d = new Date();
currentyear = d.getFullYear();
if (year>currentyear)
{
return false;
}
else
{
return true;
}
}
You must be logged in to post a comment.
This site uses Akismet to reduce spam. Learn how your comment data is processed.
Thanks for this it saved me from having to look it up!