that changes only the format the widget is responsible for, i.e. when you 
choose a date from the calendar.

On Friday, September 20, 2013 7:51:40 PM UTC+2, Roberto Perdomo wrote:
>
> Try changing this in web2py_ajax.html:
>
> var w2p_ajax_date_format = "{{=T('%Y-%m-%d')}}";
> var w2p_ajax_datetime_format = "{{=T('%Y-%m-%d %H:%M:%S')}}";
>
>
>
>
> 2013/9/20 Joe Barnhart <[email protected] <javascript:>>
>
>> Hi Niphlod --
>>
>> This is what I thought as well.  Yet in my controller I have set this:
>>
>>
>>     
>> dbrw.birth.requires=[IS_DATE_IN_RANGE(maximum=target,format="%m-%d-%Y")]
>>
>>
>> Still, I do not get the format mm-dd-yyyy but rather yyyy-mm-dd when the 
>> form is displayed.  I have tried it with and without the enclosing list 
>> and, although it will correctly read back the format I specified, it always 
>> displays the form initially with the wrong date format.
>>
>> -- Joe
>>
>> On Friday, September 20, 2013 4:11:38 AM UTC-7, Niphlod wrote:
>>>
>>>
>>> BTW, a simple requires=IS_DATE(format='%d-%**m%-%Y') works, given that 
>>> no '%d-%m-%Y' is never translated.
>>>
>>>>
>>>>  -- 
>> Resources:
>> - http://web2py.com
>> - http://web2py.com/book (Documentation)
>> - http://github.com/web2py/web2py (Source code)
>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "web2py-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to