Skip to content

Filters

Format a date string using IntlDateFormatter. Output is localised to the active language.

Returns: string

ParamTypeDescription
datestringDate string (e.g. from post.date)
patternstringICU date pattern — default: dd MMMM YYYY
{{ post.date | format_datetime }}
{# outputs: 08 May 2026 #}
{{ post.date | format_datetime('MMMM YYYY') }}
{# outputs: May 2026 #}