pp108 : getAbbreviatedMonthName

getAbbreviatedMonthName


Returns the abbreviated month name in the index for the corresponding locale

Syntax

localeObject.getAbbreviatedMonthName(month)

Parameters

Parameter

Description

month

Required. The index of the month.
Note: The index starts from zero (0).

Return Value


Abbreviated month name

Example


The following example displays how this method is used.

importType("wcp.library.util.LocaleFormat");

importType("wcp.library.util.Locale");

var localeObject = new Locale(sLocale);//sLocale --> "en-US"
localeObject.getAbbreviatedMonthName(2);//Will set "Mar" for locale "en-US"

See Also


Locale, Locales