# model
db.define_table('a',SQLField('dts','datetime'))

import datetime
now=datetime.datetime.now()

# this works
db(db.a.dts > now).select(db.a.ALL)

# this doesn't work
db(db.a.dts.weekday() == now.weekday()).select(db.a.ALL)

# this also doesn't work
db(db.a.dts.day > now.day).select(db.a.ALL)

Can you see what I'm trying to do? If so, how do I do this? Seems like
it should work.
--~--~---------~--~----~------------~-------~--~----~
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 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to