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

20 November
20 novembre

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