How to find whether given year is Leap year or not in asp.net using c#

Find whether given year is Leap year or not in asp.net using c#

Find-leap-year.aspx.cs

bool isLeapYear= DateTime.IsLeapYear(2007);

In the example given above, it will return True to the isLeapYear variable of Boolean type. I hope it will be great helpful for you.

0 comments:

Post a Comment