setShortTimeFormat |
Sets the short time format for the corresponding locale
Syntax
localeObject.setShortTimeFormat(format)
Parameters
Parameter |
Description |
---|---|
format |
Required. The short time format. |
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.setShortTimeFormat("hh:mm");//Will set "hh:mm" for locale "en-US"