function IsLeapYear(year)
{
if ((year%4)==0)
{
if ((year%100==0) && (year%400)!=0)
{
return false;
}
else
{
return true;
}
}
else
{
return false;
}
}

Leave a Reply

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