date
Filter
Converts a timestamp into another date and/or time format.
Parameters
Parameter | Required | Description |
---|---|---|
format
|
Yes |
string Format to convert to. The syntax for this is the same as
strftime .
|
Category
Description
The date
filter formats a date
object into a formatted date
and/or time of your choice. See strftime.org for a full list of formatting options.
You can also pass the now
date object to this function to get the current date and time.