pp108 : getAbbreviatedDayName

getAbbreviatedDayName


Returns the abbreviated day name for the index in the corresponding locale

Syntax

localeObject.getAbbreviatedDayName(day)

Parameters

Parameter

Description

day

Required. The index of the abbreviated day name.

Return Value


Returns the abbreviated day name

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.getAbbreviatedDayName(2);//Will return "Tue" for locale "en-US"

See Also


Locale, Locales