Skip to main content

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​

InputTypeRequiredDefaultWhat it is
ValueDateTimeYesDate to format (UTC).
PatternStringNoyyyy-MM-ddPattern, e.g. dd/MM/yyyy, yyyy-MM-dd HH:mm, MMM d, yyyy.
Time zoneStringNoUTCTime zone to show the date in: local (the runner's own), UTC or a name such as Asia/Kolkata.
LocaleStringNoenLanguage for month and day names, e.g. en, de-DE, fr-FR.
StandardStringNoA predefined ISO or RFC format to use instead of the pattern.

Outputs​

OutputTypeWhat it is
textStringFormatted date.