For a datastore table with two db.DateTimeProperty columns start_date
and end_date, i need to use a date range in query but below given
query is not working
current_date=datetime.datetime.strptime(self.request.get
('current_date'), '%Y-%m-%dT%H:%M:%S')

db.GqlQuery('SELECT * FROM myTable where start_date>=:cdate and
end_date<=:cdate',cdate=current_date)
in the parameters I am passing current_date=2009-01-10T00:00:00
Should we not compare dates this way?
But this is not working
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" 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/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to