Sdílet prostřednictvím


ZonedDateTime.MonthValue Property

Definition

Gets the month-of-year field from 1 to 12.

public int MonthValue { [Android.Runtime.Register("getMonthValue", "()I", "", ApiSince=26)] get; }
[<get: Android.Runtime.Register("getMonthValue", "()I", "", ApiSince=26)>]
member this.MonthValue : int

Property Value

the month-of-year, from 1 to 12

Attributes

Remarks

Gets the month-of-year field from 1 to 12.

This method returns the month as an int from 1 to 12. Application code is frequently clearer if the enum Month is used by calling #getMonth().

Java documentation for java.time.ZonedDateTime.getMonthValue().

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