Overview
Thesub-to-date transformation subtracts a specified amount of time from a date.
Syntax
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
date-variable | date | Yes | The date to subtract time from |
amount-variable | number | Yes | The amount of time to subtract |
unit | string | No | Unit of time: "milliseconds", "seconds", "minutes", "hours", "days", "months", or "years" |
inputLocale | string | No | Locale used to parse the input date: "pt", "nl", "en", "de", "ja", "zh", or "fr" |