Handlebars timezoneConversion
Handlebars timezoneConversion: converts a date to a different time zone.
Next
Runtime verified
Test scripts included
Converts a date to a different time zone.
Syntax
{{timezoneConversion date sourceTZ targetTZ}}
Returns string.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
date |
string | Yes | Input date. |
sourceTZ |
string | Yes | Time zone of the input date. |
targetTZ |
string | Yes | Time zone to convert to. |
Example
Tested in a Marketing Cloud Next email on 2026-11-25, alone in the email:
{{timezoneConversion "2025-01-15 12:00:00" "UTC" "America/New_York"}}renders2025-01-15T07:00:00, the ISO-8601 format the docs name as return value.- Helper names are case-sensitive.
{{timeZoneConversion …}}(capital Z) is rejected when the email is saved as an unsupported helper; only the documented spellingtimezoneConversionworks.
Show Next test script
Show calls that fail in Next (one email each)
Marketing Cloud Next
Works as documented
Every tested call rendered the documented result. Write the name as the docs do: timezoneConversion; timeZoneConversion is rejected at save. Tested 2026-11-25 by rendering in a Marketing Cloud Next email.
See also
- AMPscript
LocalDateToSystemDate— does a similar job in AMPscript, with a different call shape - AMPscript
SystemDateToLocalDate— does a similar job in AMPscript, with a different call shape - Official reference