Django equivalent of PHP's date -


does know similar function date() php in django?

i'm starting learn nice framework, i'm happy (at momment) haven't found function

yes.

date

formats date according given format.

uses similar format php’s date() function (http://php.net/date) differences.

for example, can do:

{{ value|date:"d d m y" }} 

if value datetime object (e.g., result of datetime.datetime.now()), output string 'jul 22 2013'.

documentation:


Comments

Popular posts from this blog

php - URL redirection after form submitted without inherited params -

c# - must be a non-abstract type with a public parameterless constructor in redis -

c# - ReportViewer control - axd url -