Mirek Zvolský
unread,Oct 19, 2010, 10:31:48 AM10/19/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to web2py-users
Hi,
I'm new in web2py (and web programming at all).
Can anybody help me, how should I display dates in <input> (I want use
SQLFORM())?
At this time I see 2010-10-19 and same I receive from javascript
calendar.
However proper local setting for our country is 19.10.2010 and of
course users want to see this that way in the web form.
What I should do in model?
And more...
If I translate the application to the language wit same date format
dd.mm.YYYY, there is no additional problem. But if the country uses
different date format, I think formatting cannot be made in model.
Is there a property of T() object, where formatting can be set (and
changed based on current language).
I'm sorry for the basic question, however I cannot find the answer
here in user group messages nor in web2py book.
Thanks, Mirek