pp108 : getMonthName

getMonthName


Sets the month name for the index in the corresponding locale

Syntax

localeObject.getMonthName(month)

Parameters

Parameter

Description

month

Required. The month number.


Return Value


No return value

Remarks

Indexing starts from zero (0)

Example


The following example displays how this method is used.

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

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

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

See Also


Locale