DateTime::IsLeapYear Method (Int32)
Returns an indication whether the specified year is a leap year.
Assembly: mscorlib (in mscorlib.dll)
year is specified as a 4-digit base 10 number; for example, 1996.
year is always interpreted as a year in the Gregorian calendar. To determine whether a particular year was a leap year in some other calendar, call that calendar object's IsLeapYear method.
Available since 8
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 8.1