localized_date

Description

Pretty print a date.

Syntax

{{ <date> | localized_date: <format>(, <locale>) }}

Examples

{{ today | localized_date: '%d %B' }}
{{ today | localized_date: '%d %B', 'fr' }}

Returns

29 March
29 mars

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.
© 2024 LocomotiveCMS Terms of use Privacy Policy
Back to top