what i am trying to do is that , i am using ndb model as my database and i have a model having DateTimeProperty() property.
Now what i want is that i want to fetch all the records which for a particular year and also for a particular month.
userid = ndb.StringProperty()
source = ndb.StringProperty()
handle = ndb.StringProperty()
viewedCount = ndb.IntegerProperty(default=0)
likedCount = ndb.IntegerProperty()
uploadedOn = ndb.DateTimeProperty()
latitude = ndb.FloatProperty(default=0)
longitude = ndb.FloatProperty(default=0)
i have a field uploadedOn which has a dateTime property.
queries would be like (i) fetch all records for year 2012 (ii) fetch records for month of January
I have value in format