In my views i have the date in the following format s_date=20090106
and e_date=20100106
The model is defined as
class Activity(models.Model):
timestamp = models.DateTimeField(auto_now_add=True)
how to query for the timestamp filed with the above info.
Activity.objects.filter(timestamp>=s_date and timestamp<=e_date)
Thanks.....