setAMDesignator |
Sets the AM designator for the corresponding locale
Syntax
localeObject.setAMDesignator(designator)
Parameters
Parameter |
Description |
---|---|
designator |
Required. The AM designator. |
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.setAMDesignator("am");//Will set "am" for locale "en-US"