Sdílet prostřednictvím


DateFormatSymbols.GetShortMonths Method

Definition

Gets short month strings.

[Android.Runtime.Register("getShortMonths", "()[Ljava/lang/String;", "GetGetShortMonthsHandler")]
public virtual string[]? GetShortMonths ();
[<Android.Runtime.Register("getShortMonths", "()[Ljava/lang/String;", "GetGetShortMonthsHandler")>]
abstract member GetShortMonths : unit -> string[]
override this.GetShortMonths : unit -> string[]

Returns

String[]

the short month strings.

Attributes

Remarks

Gets short month strings. For example: "Jan", "Feb", etc. An array with either 12 or 13 elements will be returned depending on whether or not java.util.Calendar#UNDECIMBER Calendar.UNDECIMBER is supported. Use java.util.Calendar#JANUARY Calendar.JANUARY, java.util.Calendar#FEBRUARY Calendar.FEBRUARY, etc. to index the result array.

If the language requires different forms for formatting and stand-alone usages, this method returns short month names in the formatting form. For example, the preferred abbreviation for January in the Catalan language is <em>de gen.</em> in the formatting form, while it is <em>gen.</em> in the stand-alone form. This method returns "de gen." in this case. Refer to the Calendar Elements in the Unicode Locale Data Markup Language (LDML) specification for more details.

Java documentation for java.text.DateFormatSymbols.getShortMonths().

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