On Sat, May 23, 2009 at 4:47 PM, <annet.verm...@gmail.com> wrote: > T.force('en-de') ## en-de is a language file you'll create below > > > In the table definition: > > SQLField('fieldname', type='date') > > > ... a validator on this field which reads like: > > db.tablename.fieldname.requires=IS_NULL_OR(IS_DATE(str(T('%Y-%m- > %d')))) > > > Languages: > > ... create a language file e.g. en-de.py and edit the dates: > > Original Translation > %Y-%m-%d %d-%m-%Y > %Y-%m-%d %H:%M:%S %d-%m-%Y %H:%M:%S
Thanks a million! Horst --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---