getAbbreviatedDay |
Returns the index for the abbreviated day name for the corresponding locale
Syntax
localeObject.getAbbreviatedDay(dayName)
Parameters
Parameter |
Description |
---|---|
dayName |
Required. The abbreviated day name. |
Return Value
Returns the day index
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.getAbbreviatedDay("Tue");//Will set "2" for locale "en-US"