Actually simon that is not how you should do it because it will break stuff.
The data format appears in two places: - web2py.js for the popup calendar - the IS_DATE(), IS_DATETIME() validators. They have to be the same in both. They are always wrapped in a T(...) so all you should need to do it add the proper translation for the for strings using the languages interface. You should not change it for all languages. if you really want to change for all languages, as you did. make sure you also change it in the validators otherwise it will break for visitors with different language settings. On Saturday, 18 August 2012 10:52:22 UTC-5, Simon Carr wrote: > > I have created a short video on how to change the default Ajax date format > in Web2Py. This in turn allows the Calendar widget to return what ever date > format you want. > > http://www.youtube.com/watch?v=nk5YEP5r-UQ > > Cheers > Simon > > On Tuesday, 9 August 2011 21:07:19 UTC+1, Jim S wrote: >> >> I'm sure I just missed this somewhere, but I can't find how to control >> the date format for date fields in CRUD-created forms. >> >> db.py.... >> >> driverUnit = db.define_table('driverUnit', >> Field('driverUnitId', 'id'), >> Field('driverId', db.driver, required=True, label='Driver'), >> Field('unitId', db.unit, required=True, label='Unit'), >> Field('start', 'date', required=True, label='Started On')) >> >> How it displays in my form... >> >> >> I'd like it to be mm/dd/yyyy format but don't know how to tell it to >> display that way. What I'm finding on the web is just confusing me more. >> >> -Jim >> >> >> >> >> --