Share via


YearMonth.LengthOfMonth Method

Definition

Returns the length of the month, taking account of the year.

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

Returns

the length of the month in days, from 28 to 31

Attributes

Remarks

Returns the length of the month, taking account of the year.

This returns the length of the month in days. For example, a date in January would return 31.

Java documentation for java.time.YearMonth.lengthOfMonth().

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