[Answered ]-Django equivalent of PHP's date

2👍

Yes.

date

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:

Leave a comment