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?
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 |
|---|---|---|---|---|
| 1 | 673 | 1 week ago | ||
| 0 | 3043 | 9 years ago | ||
| 2 | 1983 | 9 years ago | ||
| 2 | 5337 | 9 years ago | ||
| 1 | 4134 | 9 years ago |