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.
| Field | Description |
|---|---|
| input | The date value to reformat. |
| sourceFormat | Pattern the input is in. Optional — ISO date / date-time is understood without it. |
| targetFormat | Pattern to produce. Omit to get ISO output. |
0
date-add
Parses a date, adds days, months and/or years, and re-emits it.
| Field | Description |
|---|---|
| input | The starting date. |
| sourceFormat | Pattern the input is in (optional, ISO understood). |
| days / months / years | Amounts to add. Each defaults to 0; use negatives to subtract. |
| targetFormat | Output pattern. Defaults to sourceFormat. |
2
current-date
Returns the current date/time, optionally formatted. Takes no input.
3