pp108 : getAbbreviatedMonth

getAbbreviatedMonth


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

Syntax

localeObject.getAbbreviatedMonth(monthName)

Parameters

Parameter

Description

monthName

Required. Returns the month index

Return Value


Returns the index for the 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.getAbbreviatedMonth("Mar");//Will return "2" for locale "en-US"

See Also


Locale, Locales