Thank you Alex

On Apr 11, 11:47 am, Alex Gaynor <alex.gay...@gmail.com> wrote:
> On Sat, Apr 11, 2009 at 2:44 AM, Kenneth Gonsalves
> <law...@thenilgiris.com>wrote:
>
>
>
> > On Saturday 11 April 2009 11:16:52 Nalini wrote:
> > > select * from Table where dates BETWEEN '2009-01-01' AND  '2009-01-31'
> > >  Can any one help me?
>
> > Model.objects.filter(mydate__gte='2009-01-01'
> > ).filter(mydate__lte='2009-01-31')
> > --
> > regards
> > kg
> >http://lawgon.livejournal.com
>
> You can also do mydate__range=(datetime_obj1, datetime_obj2).
>
> Alex
>
> --
> "I disapprove of what you say, but I will defend to the death your right to
> say it." --Voltaire
> "The people's good is the highest law."--Cicero
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to