setMonthNames |
Sets the month names for the corresponding locale
Syntax
localeObject.setMonthNames(names)
Parameters
Parameter |
Description |
---|---|
names |
Required. The names of the months separated with space. |
Return Value
NA
Remarks
The month names must be separated with spaces.
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.setMonthNames("January February March April May June July August September October November December");