Date filters for formatting dates in Liquid templates.
date
%Z
(since v10.11.1) is replaced by the passed-in timezone name from LiquidOption
or in-place value (see TimeZone below). If passed-in timezone is an offset number instead of string, it’ll behave like %z
. If there’s none passed-in timezone, it returns the runtime’s default time zone.%q
flag for date ordinals. e.g. “ => 02nd of Feb
Date
object via new Date(), that means literal values are considered in runtime’s time zone by default.%A, %B %-e, %Y at %-l:%M %P %z
.dateFormat
LiquidJS option.date
supports locale specific weekdays and month names, which will fallback to English where Intl
is not supported.%q
) and Jekyll specific date filters are English-only.locale
can be set when creating Liquid instance. Defaults to Intl.DateTimeFormat().resolvedOptions.locale
).date
filter, ortimezoneOffset
LiquidJS option-360
means '+06:00'
and 360
means '-06:00'
Asia/Colombo
or America/New_York
date
works on strings if they contain well-formatted dates"now"
or "today"
as inputdate_to_string
date_to_string
filter.
Date
has not timezone information, see date filter for details.
date_to_long_string
date_to_long_string
filter.
Date
has not timezone information, see date filter for details.
date_to_xmlschema
date_to_xmlschema
.
Date
has not timezone information, see date filter for details.
date_to_rfc822
date_to_rfc822
.
Date
has not timezone information, see date filter for details.