Docs Menu
API Developer Guide / middleware / pub / date / convertTimeZone

Service: convertTimeZone

Convert to date object time from a timezone to another timezone.

Input Parameter:

Name Type Description
dateObj: Object DateTime value
fromTimeZone: String from timeZoneId (e.g. America/New_York)
toTimeZone: String to timeZoneId (e.g. America/Denver)

Output Parameter:

Name Type Description
convertedTimeZone: Object Converted Time Zone