IsLeapDay(Int32,Int32,Int32,Int32) Method
In This Topic
Determines whether the specified date in the specified era is a leap day.
Syntax
Parameters
- year
- An integer that represents the year.
- month
- An integer from 1 to 12 that represents the month.
- day
- An integer from 1 to 31 that represents the day.
- era
- An integer that represents the era.
Return Value
true, if the specified day is a leap day; otherwise, false.
Exceptions
Exception | Description |
System.ArgumentOutOfRangeException |
year is outside the range supported by the calendar.-or- month is outside the range supported by the calendar.
-or- day is outside the range supported by the calendar.-or- era is outside the range supported by the calendar.
|
See Also