DatepickerFilter format in a datatable

I'm using a custom format (%d/%m/%Y) in a date column and I'm using datepickerFilter in the column, but the datepicker is not using the format function and when I pick a date it shows format %m/%d/%Y so if cannot match the results.

{ id:"date",
header:[
"Released",
{ content:"dateFilter"}
] ,
width:160,
format:webix.Date.dateToStr("%d/%m/%Y"), sort:"int"
},

Comments

  • You can find the snippet here:

    https://snippet.webix.com/u94e471z

  • Hello @raugonzalez,

    I'm using a custom format (%d/%m/%Y) in a date column and I'm using datepickerFilter in the column, but the datepicker is not using the format function and when I pick a date it shows format %m/%d/%Y so if cannot match the results.

    The date format is responsible only for the visual representation of the Date object in this case, and does not affect filtering in any way. The filtering is done entirely using the data that has been passed inside the datatable. Even in the provided example, the data is filtered correctly, as far as I can see.

    Still, if you wish to change the format displayed in the input of the datepickerFilter, you can do so by setting it in the inputConfig property: https://snippet.webix.com/cwxj89gy.

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!