date format

Hi webix team,

My date is in d/m/Y format. how can I set it to date picker.

It is providing me a wrong result.


  • edited May 2018

    There you can see two ways of how you can convert date into string and vice versa.

    • change global format for handling date and time ( "%Y-%m-%d %H:%i" by default )
    webix.i18n.parseFormat = "%d/%m/%Y %H:%i"
    • custom parser which returns a date object from string with specified format
    var parser = webix.Date.strToDate("%d/%m/%Y");

    Please check the sample:
    more information about formatting is here

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!

In this Discussion