Hello,
I'm struggling with dates correct.
What I have :
1) JSON generated by PHP
2) Kendo UI Grid
What I need :
1) display date in custom format
2) grid has to be sortable on the date-field
3) I have to manually add a new record in the datasource with a new Date(jQuery)
What is the best way :
1) what is the best way to put a date in a JSON file ?
that is what I have now, a PHP datetime-object -> creatiedatum":{"date":"2015-01-29 15:38:55","timezone_type":3,"timezone":"Europe\/Brussels"}
2) How do I display the date as 'dd-MM-yyyy' in the grid and keep it sortable !
3) How do I add a new record by code in jQuery
This is what I have now, works fine besides the date-field (???????)
Thx,
Gert
I'm struggling with dates correct.
What I have :
1) JSON generated by PHP
2) Kendo UI Grid
What I need :
1) display date in custom format
2) grid has to be sortable on the date-field
3) I have to manually add a new record in the datasource with a new Date(jQuery)
What is the best way :
1) what is the best way to put a date in a JSON file ?
that is what I have now, a PHP datetime-object -> creatiedatum":{"date":"2015-01-29 15:38:55","timezone_type":3,"timezone":"Europe\/Brussels"}
2) How do I display the date as 'dd-MM-yyyy' in the grid and keep it sortable !
3) How do I add a new record by code in jQuery
This is what I have now, works fine besides the date-field (???????)
$("#grid").data("kendoGrid").dataSource.insert(0, { id: 99, done: false, title: 'computer', description: "a new computer for IT-Dep.", creationDate: ??????????
});Thx,
Gert