Returns an indication whether the specified year is a leap year.
static member IsLeapYear :
year: int -> bool
System .Boolean if true year is a leap year; otherwise, . false 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 method. IsLeapYear
The following example uses the
method to determine which years between 1994 and 2014 are leap years. The example also illustrates the result when the IsLeapYear method is used to add a year to a leap day. AddYears
No code example is currently available or this language may not be supported.
Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1
.NET Framework Client Profile
Supported in: 4, 3.5 SP1
Supported in: 3.0, 2.0, 1.0
Portable Class Library
Supported in: Portable Class Library
Supported in: Windows Phone 8.1
Supported in: Windows Phone Silverlight 8.1
Supported in: Windows Phone Silverlight 8