On Thursday, 17 January 2013 14:56:51 UTC+11, Massimo Di Pierro wrote: > > Does this help? > http://web2py.com/books/default/chapter/29/03#On-date,-datetime-and-time-format > > My little problem was that I'm using some legacy code, which wanted dates as strings in dd-mm-yyyy. The date picker returns strings yyyy-mm-dd. Mostly in my app, yyyy-mm-dd is exactly ok, but there is this one instance where dd-mm-yyyy is required. So I wondered if there was an easy way to change behaviour of the widget, one-time (so I don't want to change application-wide defaults). The jquery docs suggest only javascript can do it. In the end I just used datetime to convert it to a date and back to a string in my required format.
> On Wednesday, 16 January 2013 21:24:06 UTC-6, Tim Richardson wrote: >> >> I'm using the date picker in a form by using _class='date' >> Can I change the format of the string returned? >> >> --

