Newer Version Available

This content describes an older version of this product. View Latest

UTCToWallTime()

Converts a datetime from UTC to a specified timezone.

Signature

UTCToWallTime (Date date, String timezone, function callback)

Parameters

date
Type: Date
A JavaScript Date object.
timezone
Type: String
A time zone ID based on the class, for example, "America/Los_Angeles".
callback
Type: function
A function to call after the conversion is done. Access the converted value in the first parameter of the callback.

Sample Code