Filters
format_datetime
Section titled “format_datetime”Format a date string using IntlDateFormatter. Output is localised to the active language.
Returns: string
| Param | Type | Description |
|---|---|---|
| date | string | Date string (e.g. from post.date) |
| pattern | string | ICU date pattern — default: dd MMMM YYYY |
{{ post.date | format_datetime }}{# outputs: 08 May 2026 #}
{{ post.date | format_datetime('MMMM YYYY') }}{# outputs: May 2026 #}
