Skip to main content

Overview

The add-to-date transformation adds a specified amount of time to a date.

Syntax

add-to-date(<date-variable>, <amount-variable>, unit="days")

Parameters

ParameterTypeRequiredDescription
date-variabledateYesThe date to add time to
amount-variablenumberYesThe amount of time to add
unitstringNoUnit of time: "milliseconds", "seconds", "minutes", "hours", "days", "months", or "years"
inputLocalestringNoLocale used to parse the input date: "pt", "nl", "en", "de", "ja", "zh", or "fr"

Examples

add-to-date(<date-variable>, <amount-variable>, unit="days")
add-to-date(<date-variable>, <amount-variable>, unit="hours", inputLocale="fr")