If you're looking for rows between the two dates, try: db((db.autos.dt>=d1) & (db.autos.dt<=d2)).select()
On Apr 27, 10:13 am, cyber <[email protected]> wrote: > Hmm... the same result. > And it's due to my db.table I think. > > db.define_table('autos', > ... > Field('dt', 'datetime', default=now, > requires=IS_DATETIME(format='%d/%m/%Y %H:%M:%S')) > ... > ) > > How to restyle form.vars (2011-04-27) to required format? > > **********************************************************************

