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
| Name | Type | Description |
|---|---|---|
| Datetime | String | The date string to format |
| Pattern | String | Custom pattern (only used when Format is custom) |
| Format | String | One of: 3/22/23, Mar 22, 2023, March 22, 2023, Wednesday, March 22, 2023, custom |
| Locale | String | Locale code (e.g. en, en_gb, de, fr, pt) |
| Day First? | Boolean | Set true if date is DD-MM-YYYY format |
| Include time? | Boolean | Whether to include time (requires custom pattern) |
Outputs
| Name | Type | Description |
|---|---|---|
| Success | Boolean | Whether formatting succeeded |
| Formatted Datetime | String | The formatted and localised date string |