On Apr 13, 3:13 am, [email protected] wrote:
> I am not sure I complete get the implication of your answer. Are you
> saying I have two options?

correct

> [...] and create a language file en-du.py. Will this in all cases take care
> of the date being presented in the correct format?

yes

> What are the consequences of these two options for these line of code:
>
> fromdate=request.vars.datum
> todate=IS_DATE()(fromdate)[0]+datetime.timedelta(days=int
> (request.vars.dagen))
> Here todate should be calculated as: fromdate + days = todate
> It worked when I used the YYYY-MM-DD format, however, now that I
> changed the format to DD-MM-YYYY I expect it to break.

It will not break. The date as stored by the system is always
independent by the way you choose to represent it when printed.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" 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