DateUtils.GetMonthString(Int32, AbbreviationLength) Method

Definition

Caution

deprecated

Return a localized string for the month of the year.

[Android.Runtime.Register("getMonthString", "(II)Ljava/lang/String;", "")]
[System.Obsolete("deprecated")]
public static string? GetMonthString (int month, Android.Text.Format.AbbreviationLength abbrev);
[<Android.Runtime.Register("getMonthString", "(II)Ljava/lang/String;", "")>]
[<System.Obsolete("deprecated")>]
static member GetMonthString : int * Android.Text.Format.AbbreviationLength -> string

Parameters

month
Int32

One of Calendar#JANUARY Calendar.JANUARY, Calendar#FEBRUARY Calendar.FEBRUARY, etc.

abbrev
AbbreviationLength

One of #LENGTH_LONG, #LENGTH_MEDIUM, or #LENGTH_SHORTEST. Undefined lengths will return #LENGTH_MEDIUM but may return something different in the future.

Returns

Localized month of the year.

Attributes

Remarks

Return a localized string for the month of the year.

This member is deprecated. Use java.text.SimpleDateFormat instead.

Java documentation for android.text.format.DateUtils.getMonthString(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