GetTimeZoneObjid
Object and Type
Object : FCApplication
Type : Method
Prototype
Public Function GetTimeZoneObjid(ByVal TimeZone As String) As Long
Description
This method returns an objid for a given time zone. If the time zone is not found, this method returns a value of zero. The time_zone table is cached in the FCApplication object, so this method does not cause a database round-trip.
Note: The time zone used should be the short time zone ("Central Time Zone") instead of the long one ("CST")
Parameters
Parameter Name | Required? | Description |
---|---|---|
TimeZone | Yes | Name of time zone to get the objid for. |
Returns
The objid of the time zone. Zero, if the time zone is not found.
Example
The following example retrieves the objid for a time zone.
JavaScript:
var TimeZone = Request.Form("TZ").Item;
var TimeZoneObjid = FCApp.GetTimeZoneObjid(TimeZone);