In a table definition I have:

Field('birthday',type='date',requires=IS_EMPTY_OR(IS_DATE(format='%Y-%m-%d')),represent
 
= lambda v: v.strftime('%d/%m/%Y') if v else '')

form=SQLFORM.factory(db.person, ...)

renders a form in which the field birthday isn't of type date but of type 
text, as a result this doesn't work:

jQuery( ".date" ).datepicker({dateFormat: 'dd-mm-yy'});


Kind regards,

Annet.

-- 



Reply via email to