I want to compare some date fields on the db and check if they are old or they were submited today , i got this code
{% if accounts.date.day == 13 %}
{{ accounts.name }}
{% endif %}
But i think this works on the day 13 of every motnh , and i dont want to only check if its day 13 i want to check if it wasnt today
I tried to do
{% if accounts.date.day < today %}
{{ accounts.name }}
{% endif %}
And in the views
today = datetime.datetime.now()
But it doesnt work either