How do I get date to work in aforementioned format?

Here is my model:

db.define_table(
    'fooooooooooo_profile',
    Field('DOB', 'date',
requires=IS_DATE_IN_RANGE(minimum=date(1920,12,31),
format='%d-%m-%Y'), label=T('D.O.B.'),
          widget=SQLFORM.widgets.date.widget),)

Thanks for all suggestions,

Alec Taylor

-- 



Reply via email to