Skip to main content

Overview

The format-date-locale-var transformation formats a date value using a locale provided as a variable. This is similar to Format Date, but the output locale comes from a variable instead of a static option.

Syntax

format-date-locale-var(<variable>, <locale-variable>, format="DATE_SHORT")

Parameters

ParameterTypeRequiredDescription
variabledateYesThe date value to format
locale-variablevariableYesThe locale variable (e.g., "en-US", "fr-FR")
formatstringYesThe predefined format key (see Format Date for available formats)
timezonestringNoThe timezone to use (e.g., "UTC", "Europe/Paris"). Defaults to "UTC"
inputLocalestringNoLocale used to parse the input date: "pt", "nl", "en", "de", "ja", "zh", or "fr"

Examples

format-date-locale-var(<variable>, <locale-variable>, format="DATE_SHORT")
format-date-locale-var(<variable>, <locale-variable>, format="DATETIME", timezone="Europe/Paris")