mirror of
https://github.com/kemko/liquid.git
synced 2026-01-02 08:15:41 +03:00
554 B
554 B
title
| title |
|---|
| date |
Converts a timestamp into another date format. The format for this syntax is the same as strftime.
{% raw %}
{{ article.published_at | date: "%a, %b %d, %y" }}
{% endraw %}
Fri, Jul 17, 15
{% raw %}
{{ article.published_at | date: "%Y" }}
{% endraw %}
2015
date works on strings if they contain well-formatted dates:
{% raw %}
{{ "March 14, 2016" | date: "%b %d, %y" }}
{% endraw %}
{{ "March 14, 2016" | date: "%b %d, %y" }}