Hello,
I am using querybuilder with datagrid, but I am having problems to filter type date. I got the data from my API like that: "2019-10-21T00:00:00-03:00" and I realize that for the filter of querybuilder works I need to transform every date, like this:
for (let i = 0; i < this.contratos.length; i++) {
if (this.contratos[i].dataInicio != null) {
this.contratos[i].dataInicio = new Date(this.contratos[i].dataInicio);
}
}
But, on grid, I don't need transform the date like this, to sort the column, for example. There's some another way to do that?
Ps. My column on querybuilder:
<e-column field="dataInicio" label="Data início" type="date" format="dd/MM/yyyy"></e-column>
Thank you