mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-15 08:50:45 -07:00
pretty tables
This commit is contained in:
+4
-4
@@ -4,9 +4,9 @@ title: date
|
|||||||
|
|
||||||
`date` converts a timestamp into another date format.
|
`date` converts a timestamp into another date format.
|
||||||
|
|
||||||
| Input | Output |
|
| Input | Output |
|
||||||
|-------------------------------------------:|:-------|
|
|--------------------------------------------------------------------------:|:---------------------|
|
||||||
| {% raw %}`{{ article.published_at | date: "%a, %b %d, %y" }}` {% endraw %} | Tue, Apr 22, 14 |
|
| {% raw %}`{{ article.published_at | date: "%a, %b %d, %y" }}`{% endraw %} | Tue, Apr 22, 14 |
|
||||||
| {% raw %}`{{ article.published_at | date: "%Y" }}` {% endraw %} | 2014 |
|
| {% raw %}`{{ article.published_at | date: "%Y" }}`{% endraw %} | 2014 |
|
||||||
|
|
||||||
The format for this syntax is the same as [`strftime`](http://strftime.net/).
|
The format for this syntax is the same as [`strftime`](http://strftime.net/).
|
||||||
|
|||||||
Reference in New Issue
Block a user