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

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

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