setTimezone |
Sets the time zone for the date. If nothing is passed, by default the client system time zone is set.
Syntax
dateFormatObj.setTimezone(timezone)
Parameters
Parameter |
Description |
---|---|
timezone |
Required. The time zone name. |
Return Value
No return value
Example
The following example displays how this method is used.
importType("wcp.library.util.LocaleFormat"); importType("wcp.library.util.DateFormat"); var dateFormat = new DateFormat(sFormat, localeName, elmt); dateFormat.setTimezone("Africa/Abidjan");