Description
Pretty print a date.
Syntax
{{ <date> | localized_date: <format>(, <locale>) }}
Examples
{{ today | localized_date: '%d %B' }}
{{ today | localized_date: '%d %B', 'fr' }}
Returns
12 October
12 octobre
Options
Name | Type | Description |
---|---|---|
format | String | It depends on the current locale. For the 'en' locale, it is "%m/%d/%Y". Read the syntax reference. |
locale | String | Optional. By default, it is the current locale. |