pp108 : setDayNames

setDayNames


Sets the day names for the corresponding locale

Syntax

localeObject.setDayNames(names)

Parameters

Parameter

Description

names

Required. The day names separated with spaces.

Return Value


NA

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.setDayNames("Sunday Monday Tuesday Wednesday Thursday Friday Saturday");//
Will set"Sunday Monday Tuesday Wednesday Thursday Friday Saturday" for locale "en-US"

See Also


Locale, Locales