MonthDay.IsValidYear(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Checks if the year is valid for this month-day.
[Android.Runtime.Register("isValidYear", "(I)Z", "", ApiSince=26)]
public bool IsValidYear (int year);
[<Android.Runtime.Register("isValidYear", "(I)Z", "", ApiSince=26)>]
member this.IsValidYear : int -> bool
Parameters
- year
- Int32
the year to validate
Returns
true if the year is valid for this month-day
- Attributes
Remarks
Checks if the year is valid for this month-day.
This method checks whether this month and day and the input year form a valid date. This can only return false for February 29th.
Java documentation for java.time.MonthDay.isValidYear(.*int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.