Zetect Usage Guide Expressions & TransformsSwitch portal ⇄

Date Transforms

Reformat dates, shift them by a period, or emit the current date.

date-format

Parses a date and re-emits it in another format.

FieldDescription
inputThe date value to reformat.
sourceFormatPattern the input is in. Optional — ISO date / date-time is understood without it.
targetFormatPattern to produce. Omit to get ISO output.
0

date-add

Parses a date, adds days, months and/or years, and re-emits it.

FieldDescription
inputThe starting date.
sourceFormatPattern the input is in (optional, ISO understood).
days / months / yearsAmounts to add. Each defaults to 0; use negatives to subtract.
targetFormatOutput pattern. Defaults to sourceFormat.
2

current-date

Returns the current date/time, optionally formatted. Takes no input.

3