pp108 : getDayNames

getDayNames


Returns the day names as an array for the corresponding locale

Syntax

localeObject.getDayNames()

Parameters

NA

Return Value


Returns the day names. The indexing starts from zero (0).

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

See Also


Locale, Locales