Massimo
Thank you for the reply. However, it still isn't working correctly for
me. I think I may have explained the problem wrong. When I go in to
edit a record, the date displays with the %m/%d/%Y format as I want.
But, when I select a date from the calendar widget it places the date
into the field in %Y-%d-%m format. What I really want to do is force
the calendar date widget to represent its date in %m/%d/%Y format.
Sorry for the misleading....
-Jim
On 8/9/2011 4:59 PM, Massimo Di Pierro wrote:
Field(...,requires=IS_DATE(format='%m/%d/%Y'))
On Aug 9, 3:07 pm, Jim Steil<[email protected]> 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