Condividi tramite


Month.MaxLength Method

Definition

Gets the maximum length of this month in days.

[Android.Runtime.Register("maxLength", "()I", "", ApiSince=26)]
public int MaxLength ();
[<Android.Runtime.Register("maxLength", "()I", "", ApiSince=26)>]
member this.MaxLength : unit -> int

Returns

the maximum length of this month in days, from 29 to 31

Attributes

Remarks

Gets the maximum length of this month in days.

February has a maximum length of 29 days. April, June, September and November have 30 days. All other months have 31 days.

Java documentation for java.time.Month.maxLength().

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