pp108 : getDayName

getDayName


Returns the day name for the index in the corresponding locale

Syntax

localeObject.getDayName(day)

Parameters

Parameter

Description

day

Required. The index of the day.

Return Value


Returns the full name of the day

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.getDayName(2);//Will set "Tuesday" for locale "en-US"

See Also


Locale, Locales