How to display the current year in a Django template?
{% now 'Y' %}
is the correct syntax
The full tag to print just the current year is {% now "Y" %}
. Note that the Y must be in quotes.
{% now %}
{% now 'Y' %}
is the correct syntax
The full tag to print just the current year is {% now "Y" %}
. Note that the Y must be in quotes.
{% now %}