There is not but you can define def same_date(table,dt): return (table.posted.day()==dt.day)& (table.posted.month()==dt.month)&(table.posted.year()==dt.year)
and use db(same_date(db.table,dt)).select() Massimo On Dec 16, 4:28 am, Tari <[email protected]> wrote: > Hello again, > > Just a quick one: > > Is there a way I could retrieve only the date part in a db operation? > > Looking for a substitute for this: > > dt = datetime.datetime.today() > > db((db.table.posted.day() == dt.day) & (db.table.posted.month() == > dt.month) & (db.table.posted.year() == dt.year) .select(...) > > Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" 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/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

