And note that yyyy-mm-dd format is the way how mysql and sqlite keep
dates.

On Dec 23, 4:39 pm, Brian M <[email protected]> wrote:
> I think that the format is controlled in the web2py_ajax.html view.
>
> try {jQuery("input.date").focus( function() {Calendar.setup({
>      inputField:this.id, ifFormat:"{{=T('%Y-%m-%d')}}",
> showsTime:false
>   }); }); } catch(e) {};
>   try { jQuery("input.datetime").focus( function() {Calendar.setup({
>      inputField:this.id, ifFormat:"{{=T('%Y-%m-%d %H:%M:%S')}}",
> showsTime: true,timeFormat: "24"
>   }); }); } catch(e) {};
>
> Since the format string seems to be in a T() I would guess that it's
> possible to change that using translations?
>
> ~Brian
>
> On Dec 23, 7:29 am, Alexandre Andrade <[email protected]>
> wrote:
>
> > While
>
> > db.convenio.data_assinatura.requires =
> > IS_DATE(format=T('%d-%m-%Y'),error_message=T('deve ser no formato
> > DD-MM-AAAA!'))
>
> > show me the date in correct locale, the calendar widget don't show the
> > correct date.
>
> > How to locale it or  make it show the correct date?
>
> > --
> > Atenciosamente
>
> > --
> > =========================
> > Alexandre Andrade
> > Hipercenter.com

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.


Reply via email to