Try this. requires=IS_EXPR('str(value) > "%s"' % str(datetime.date.today()))
On Dec 23, 8:26 pm, villas <villa...@gmail.com> wrote: > Using SQLFORM I wish to make sure a date is >= today. > > I tried using things like: > Field('arrdate', 'date', requires=IS_EXPR('value >= %s'% > datetime.date.today().strftime('%Y-%m-%d')) ), > > Field('arrdate', 'date', requires=IS_EXPR('value > %s'% > datetime.date.today() ) ), > > Could anyone point me in the right direction? > -David -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@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.