Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

check date on template django

{% now "Y-m-d" as todays_date %}
{% if todays_date < someday|date:"Y-m-d" %}
   <h1>It's not too late!</h1>
{% endif %}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #date #template #django
ADD COMMENT
Topic
Name
1+5 =