Share via


MonthDay.IsValidYear(Int32) Method

Definition

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.

Applies to