hi, i need to know how to format a date field inside a datatable because its saving the date field like: 2019-12-31T06:00:00.000Z
and i dont need the time part, only the date part is what i need, this is my code:
and as you can see im using the format: webix.Date.dateToStr("%y-%m-%d") but its not working , so i need to find a way to save only the date part from this date component.
{
view: "datatable",
id: "iddatatablecursos",
autoheight:true,
columns: [
{
id: "idcurso", editor: "text", header: "Nombre del curso", width: 150,fillspace:true
},
{
id: "idinstitucion", editor: "text", header: "Institucion", width: 150,fillspace:true
},
{
id: "idfecha", editor: "date", header: "Fecha", width: 150, format: webix.Date.dateToStr("%y-%m-%d"), fillspace:true
}
],
select: "row",
editable: true,
navigation: true,
editaction: "dblclick",
data: []
}