date
Last updated
Last updated
Converts a timestamp into another date format. The format for this syntax is the same as .
Input
Output
Input
Output
date
works on strings if they contain well-formatted dates.
Input
Output
To get the current time, pass the special word "now"
(or "today"
) to date
.
Input
Output
Note that the value will be the current time of when the page was last generated from the template, not when the page is presented to a user if caching or static site generation is involved.