pp108 : getMonthNames

getMonthNames


Returns the month names for the corresponding locale as an array

Syntax

localeObject.getMonthNames()

Parameters

NA

Return Value


Returns the month names as an array

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.getMonthNames();//
Will return "January February March April May June July August September October November December" 
as array for locale "en-US"

See Also


Locale