I\'m saving datetime in the db for an object. I\'d like to query against the db and select anything from todays date, not datetime.
datetime
date
What\'s the
To get entries from the Last 24 hours you can use:
from datetime import datetime, timedelta Entry.objects.filter(pub_date__gte = datetime.now() - timedelta(days=1))