hi group,
How to compare date field types in a template ,a have field due_on
taking DateField type .I have to compare to present date .I have tried
the following in vain ,please help
In a template
{% if enquiry.due_on >= datetime.datetime.today %} .....{% end if %}
and
{% if enquiry.due_on__gt datetime.datetime.today %} .....{% end if %}
both gives an error
It gives me an error like 'if' statement improperly formatted
Thanks
ganesh
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.