2👍
✅
Yes.
Formats a date according to the given format.
Uses a similar format as PHP’s date() function (http://php.net/date) with some differences.
For example, you can do:
{{ value|date:"D d M Y" }}
If value is a datetime
object (e.g., the result of datetime.datetime.now()
), the output will be the string 'Jul 22 2013'
.
Documentation:
Source:stackexchange.com