http://web2py.com/books/default/chapter/29/07/forms-and-validators#IS_DATE
I don't know if we enforce that this formatting respect any python standard... I can give a try if we can pass flatpickr parameters without issue... Richard On Mon, Jun 26, 2017 at 11:57 AM, Anthony <abasta...@gmail.com> wrote: > On Monday, June 26, 2017 at 10:42:33 AM UTC-4, Richard wrote: >> >> We could certainly do that... Things would happen in web2py.js thought, >> or we bringing out flatpickr from there... But it wouldn't work properly >> passing parameters time/date/datetime from validators IS_TIME(), IS_DATE(), >> etc. So we will get complaints saying that it doesn't work specifying date >> format from validator as before... >> > > Where does the web2py framework code pass parameters from the IS_TIME() > and IS_DATE() validators to the Javascript date and time picker widgets? > > Note, we just have to specify the Flatpickr options so that the submitted > value is in the correct format -- we don't actually have to use Python > datetime formatting to achieve that. For example, if the IS_DATE() > validator expects something in YYYY-MM-DD format, then just set up > Flatpickr to return values in that format (using whatever formatting > options the Flatpickr API requires to do so). > > Anthony > > -- > 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. > -- 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.