Partager via


DateFormatSymbols.GetMonths Method

Definition

Overloads

GetMonths()

Returns month strings.

GetMonths(Int32, Int32)

Returns month strings.

GetMonths()

Returns month strings.

[Android.Runtime.Register("getMonths", "()[Ljava/lang/String;", "GetGetMonthsHandler", ApiSince=24)]
public virtual string[]? GetMonths ();
[<Android.Runtime.Register("getMonths", "()[Ljava/lang/String;", "GetGetMonthsHandler", ApiSince=24)>]
abstract member GetMonths : unit -> string[]
override this.GetMonths : unit -> string[]

Returns

String[]

the month strings.

Attributes

Remarks

Returns month strings. For example: "January", "February", etc.

Java documentation for android.icu.text.DateFormatSymbols.getMonths().

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

GetMonths(Int32, Int32)

Returns month strings.

[Android.Runtime.Register("getMonths", "(II)[Ljava/lang/String;", "GetGetMonths_IIHandler", ApiSince=24)]
public virtual string[]? GetMonths (int context, int width);
[<Android.Runtime.Register("getMonths", "(II)[Ljava/lang/String;", "GetGetMonths_IIHandler", ApiSince=24)>]
abstract member GetMonths : int * int -> string[]
override this.GetMonths : int * int -> string[]

Parameters

context
Int32

The month context, FORMAT or STANDALONE.

width
Int32

The width or the returned month string, either WIDE, ABBREVIATED, or NARROW.

Returns

String[]

the month strings.

Attributes

Remarks

Returns month strings. For example: "January", "February", etc.

Java documentation for android.icu.text.DateFormatSymbols.getMonths(int, 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