actually a_date should be datetime.date(2007,1,1). it will also accept the ISO string.
On Nov 29, 7:59 am, SergeyPo <[EMAIL PROTECTED]> wrote: > Hi guys! > > My code: > db(db.data_storage.ca_date==a_date).select(limitby=(limit, offset)) > > If I use a_date='2007-01-01' I get a result set (that I actually have > in database) > but if a_date='2007-1-1' or a_date='2007-01-1' or etc. - it can > not find the records dated 1st January 2007. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---