I have a table with a DataTimeField. I’d like to get a list of all the objects where the DateTimeField = a specific day (ignoring the time part).
The SQL would look something like:
select * from tblname where date(start)='2011-01-14'
Is it possible to get the ORM to do this kind of query?
I can do a start__range(…) kind of query, but I was wondering if I could do it the other way.
From the QuerySet API reference:
This works for Dates and DateTimes.