Thank's Mirek I'll do like that.

Il giorno martedì 23 agosto 2016 12:55:43 UTC+2, Mirek Zvolský ha scritto:
>
> In Web2py you can set this in Field(), in db model or in SQLFORM.factory, 
> via requires=.
> Something like:
>
> requires=[IS_NOT_EMPTY_(), IS_DATETIME(format='%d.%m.%Y %H:%M')]
>
>
> And you can use T('%d.%m.%Y %H:%M') and translate format for different 
> locales.
>
>
>
>
> Dne neděle 21. srpna 2016 15:28:18 UTC+2 Gael Princivalle napsal(a):
>>
>> Hello.
>>
>> I'm trying to use Bootstrap 3 datepicker.
>> http://eonasdan.github.io/bootstrap-datetimepicker/
>>
>> Edward have already use it:
>> https://groups.google.com/d/topic/web2py/ZRS6PN-Ais4/discussion
>>
>> I use it for datetime, the result in the input is like:
>> 03/09/2016 14:00
>> The form returns me an error as it need also the seconds like:
>> 03/09/2016 14:00:00
>>
>> The seconds for this application are not important, it could be a 
>> solution appending :00 to the input.
>>
>> Someone knows how I can resolve it?
>>
>> Thanks.
>>
>

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to