共用方式為


LocalDate.LengthOfMonth Method

Definition

Returns the length of the month represented by this date.

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

Returns

the length of the month in days

Implements

Attributes

Remarks

Returns the length of the month represented by this date.

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

Java documentation for java.time.LocalDate.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