Skip to main content

Overview

The subtract-to-date transformation subtracts a specified amount of time from a date.

Syntax

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

Parameters

ParameterTypeRequiredDefaultDescription
variabledateYes-The date to subtract time from
amountnumberNo0The amount to subtract
unitstringNo"days"Unit of time: "days", "hours", "minutes", "seconds", "months", "years"

Examples

subtract-to-date(<variable>, amount=7, unit="days")
subtract-to-date(<variable>, 30, "days")