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
Thank you that was really helpful.
On Saturday, August 18, 2012 8:52:22 AM UTC-7, 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.youtu
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
Thanks Anthony, that did the trick. I apologize for not stating my
problem properly in the first post.
-Jim
On 8/10/2011 9:39 AM, Anthony wrote:
The calendar widget date format is set in /views/web2py_ajax.html.
Note, it is actually a translated string, so you can change it by
adding it
The calendar widget date format is set in /views/web2py_ajax.html. Note, it
is actually a translated string, so you can change it by adding it to your
translation files (or just directly edit web2py_ajax.html if you just need a
single fixed format). You could also re-assign the value of the
w2p
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
int
Field(...,requires=IS_DATE(format='%m/%d/%Y'))
On Aug 9, 3:07 pm, Jim Steil 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('driverUni
7 matches
Mail list logo