Tag: Leap year

To check leap year

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