Date picker ProtoUI Calendar Opens on wrong date

Hi Webix Team,

I need your help with the attached snippet. everything works fine except, when I want to edit the date the calendar opens up on a different date than what's selected, can you help me fix that.
https://snippet.webix.com/z01zicap

Comments

  • edited April 16

    Hello, @MPaul

    By default DatePicker API works with the %Y-%m-%d "%H:%i:%s (webix.i18n.parseFormat) data format.
    While using stringResult:true it's necessary "to teach" Suggest (gets the value from getValue() method) how to use custom date format.
    For that purpose created a custom suggest element, that would extend DatePicker Suggest afterwards.
    Due to the necessity of converting the format to string or to Date object, the custom strValueFormatter() method does both these actions, using one mask.
    Here is the snippet: https://snippet.webix.com/ctscs712

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