Skip to content

date

Formats a date in the store’s time zone.

Takes a strftime format, or format: with a named format (abbreviated_date, basic, date, on_date, long, short). On Arabic pages month and day names are Arabic, and calendar: ‘hijri’ gives the Hijri date. ‘now’ is the current time.

date | date: '%d %b %Y' · date | date: format: 'long' · date | date: calendar: 'hijri'
Name Type Description
format string strftime format (default “%b %d, %Y”).
calendar string hijri or gregorian.

string

Liquid
{{ article.published_at | date: '%d %B %Y' }} · {{ article.published_at | date: format: 'basic' }}
Output
14 March 2026 · 03/14/2026
Liquid (Arabic page)
{{ article.published_at | date: '%d %B %Y' }} · {{ article.published_at | date: calendar: 'hijri' }}
Output
14 مارس 2026 · 25 رمضان 1447 هـ

Since theme platform 1.0.

Was this page helpful?