Share via


YearMonth.IsValidDay(Int32) Method

Definition

Checks if the day-of-month is valid for this year-month.

[Android.Runtime.Register("isValidDay", "(I)Z", "", ApiSince=26)]
public bool IsValidDay (int dayOfMonth);
[<Android.Runtime.Register("isValidDay", "(I)Z", "", ApiSince=26)>]
member this.IsValidDay : int -> bool

Parameters

dayOfMonth
Int32

the day-of-month to validate, from 1 to 31, invalid value returns false

Returns

true if the day is valid for this year-month

Attributes

Remarks

Checks if the day-of-month is valid for this year-month.

This method checks whether this year and month and the input day form a valid date.

Java documentation for java.time.YearMonth.isValidDay(.*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