Unable to set seconds value in date picker

edited September 2018 in Technical questions

hi,
In my case,i want set value to date picker including seconds ,but it unable to set value of seconds.it take seconds as "00"

https://snippet.webix.com/iud6zb1u

Tagged:

Comments

  • edited September 2018

    Hello,

    The point is that parseFormat ignores seconds by default. So it needs to change like:

    webix.i18n.parseFormat = "%Y-%m-%d %H:%i:%s";
    webix.i18n.setLocale();
    

    And format in datepicker will look like this:

    view:"datepicker", 
    format:"%Y-%m-%d %H:%i:%s",
    ...
    

    Please check the example: https://snippet.webix.com/b7m64r9k

    But a user cannot select seconds, unfortunately

  • thanks @Nastja ,It works

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!