'Django - present current date and time in template

The title is pretty self explanatory. How can one present current data and time in django's template?



Solution 1:[1]

Try using built-in django template tags and filters: https://docs.djangoproject.com/en/dev/ref/templates/builtins/?from=olddocs#now

Examples:

It is {% now "jS F Y H:i" %}
It is {% now "SHORT_DATETIME_FORMAT" %}

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Flimm