Format a date with language

Formats a date string and translates it into another language/locale. Supports preset formats and custom Unicode date patterns.

What it does

  • Parses the input date string (auto-detecting format or using the Day First hint).
  • Applies the chosen format (preset or custom pattern).
  • Translates month/day names into the specified locale.

Notes

  • Custom patterns use the Unicode CLDR format (see TR35 Date Patterns).
  • Set Day First to true only if the date format is DD-MM-YYYY (ambiguous dates). YYYY-MM-DD is auto-detected.
  • Time inclusion requires a custom pattern for now.

Inputs

NameTypeDescription
DatetimeStringThe date string to format
PatternStringCustom pattern (only used when Format is custom)
FormatStringOne of: 3/22/23, Mar 22, 2023, March 22, 2023, Wednesday, March 22, 2023, custom
LocaleStringLocale code (e.g. en, en_gb, de, fr, pt)
Day First?BooleanSet true if date is DD-MM-YYYY format
Include time?BooleanWhether to include time (requires custom pattern)

Outputs

NameTypeDescription
SuccessBooleanWhether formatting succeeded
Formatted DatetimeStringThe formatted and localised date string