did you set?

db.table.field.requires=IS_DATE(format=T('%Y-%m-%d'))?

else it assumes it should not be translated

Massimo

On Dec 9, 8:55 am, annet <[EMAIL PROTECTED]> wrote:
> Thanks, that solved my problem.
>
> Another question though:
>
> I use the calendar.js and calendar.css that come with web2py, when the
> visitor selects a date and when the events are displayed, the date
> format is %Y-%m-%d, whereas the visitor expects a date in the
> following format: %d-%m-%Y. I created a translation file en-en.py:
>
> {
> '%Y-%m-%d':'%d-%m-%Y',
>
> }
>
> But that doesn't perform the translation, what else do I have to do to
> translate the date into the desired format.
>
> Best regards,
>
> Annet.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
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