Format date
Format a date as text in a time zone, using a pattern such as dd/MM/yyyy HH:mm.
Command in the Date and time toolkit · id ooa.datetime/format · 5 inputs (1 required), 1 output
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Value | DateTime | Yes | Date to format (UTC). | |
| Pattern | String | No | yyyy-MM-dd | Pattern, e.g. dd/MM/yyyy, yyyy-MM-dd HH:mm, MMM d, yyyy. |
| Time zone | String | No | UTC | Time zone to show the date in: local (the runner's own), UTC or a name such as Asia/Kolkata. |
| Locale | String | No | en | Language for month and day names, e.g. en, de-DE, fr-FR. |
| Standard | String | No | A predefined ISO or RFC format to use instead of the pattern. |
Outputs
| Output | Type | What it is |
|---|---|---|
| text | String | Formatted date. |