Hi!
I have a problem with MySQL date format and DatePicker
I have one table in Mysql with one field : fechafinmantenimiento is datetime
in the table one register is like this : 2013-02-14 00:00:00
I have a Grid this is the code in the datasource :
fechafinmantenimiento: { type: "date", format: "MMMM-dd-yyyy" },
code in column :
{ field: "fechafinmantenimiento", title: "Finalización Tipo Mantenimiento", template: '#= kendo.toString(fechafinmantenimiento,"dd/MM/yyyy") #', width: 150},
Code DatePicker definition:
$("#cargarfechafinmantenimiento").kendoDatePicker({
format: "MM-dd-yyyy"
})
On the Grid I see the value like this: 14/02/2013 <-Correct for me!
When I select a row on the grid, send the date value to the input form
<input id="cargarfechafinmantenimiento" name="fechafinmantenimiento" style="width:150px"/>
But in the input form I see the value like this : Thu Feb 14 2013 00:00:00 GMT+0100 (Hora estándar romance)
Only when I select another date on the widget, then show me the date format like this : 02-20-2013
What is wrong? a bug? a code? bad interpretation between mysql and kendoUI (javascript)?
Thank you
JC
I have a problem with MySQL date format and DatePicker
I have one table in Mysql with one field : fechafinmantenimiento is datetime
in the table one register is like this : 2013-02-14 00:00:00
I have a Grid this is the code in the datasource :
fechafinmantenimiento: { type: "date", format: "MMMM-dd-yyyy" },
code in column :
{ field: "fechafinmantenimiento", title: "Finalización Tipo Mantenimiento", template: '#= kendo.toString(fechafinmantenimiento,"dd/MM/yyyy") #', width: 150},
Code DatePicker definition:
$("#cargarfechafinmantenimiento").kendoDatePicker({
format: "MM-dd-yyyy"
})
On the Grid I see the value like this: 14/02/2013 <-Correct for me!
When I select a row on the grid, send the date value to the input form
<input id="cargarfechafinmantenimiento" name="fechafinmantenimiento" style="width:150px"/>
But in the input form I see the value like this : Thu Feb 14 2013 00:00:00 GMT+0100 (Hora estándar romance)
Only when I select another date on the widget, then show me the date format like this : 02-20-2013
What is wrong? a bug? a code? bad interpretation between mysql and kendoUI (javascript)?
Thank you
JC