I tried to get the page date within a twig file by using page.date and that returns me number: `1480266162. How can I transform that into a decent date format?
Archive
Note to myself: Look first!
http://twig.sensiolabs.org/doc/filters/date.html
Unix time is very handy as it's an integer rather than a DateType. Easier to parse and express than having to convert between uncertain formats (fuzzy-matching is hell).
Log in to reply.
Suggested topics
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 0 | 1357 | 9 years ago | ||
| 2 | 936 | 9 years ago | ||
| 2 | 4066 | 9 years ago | ||
| 1 | 2954 | 9 years ago | ||
| 3 | 1120 | 9 years ago |