01.<div data-bind="kendoGrid: {02. data: $root.Reports,03. groupable: true,04. scrollable: true,05. filterable: true,06. sortable: true,07. pageable: {08. pageSize: 10,09. pageSizes: true10. },11. columns: [12. { field: 'ReportNumber', title : 'Report Number'},13. { field: 'CreateDate', type:'date', template: function(dataItem) { return '<span>' + ConvertDate(dataItem.CreateDate, 'MM/DD/YYYY') + '</span>';}, title: 'Create Date'}14. { command: { text: 'View', click: $root.ShowReport }, title:' ', width: 80}15. ]16. }">17.</div>01.function ConvertDate(value, format) {02. var valueUnwrapped = ko.utils.unwrapObservable(value);03. var pattern = format || 'mmmm d, yyyy';04. if (valueUnwrapped == undefined || valueUnwrapped == null) {05. return '';06. } else {07. var date = moment(valueUnwrapped);08. var str = moment(date).format(pattern);09. return str;10. }11. }I am using knockout-kendo.js
In the underlying data source for the grid the "CreateDate" is just a string like this: /Date(1368388119000)/
I have been able to display the date in the grid using the template as shown in the code above. But when I try to use the filter on the Create Date field it throws a javascript error : Uncaught TypeError: Object /Date(1368388119000)/ has no method 'getTime'
What is the proper way to bind the date in this format so that the filtering works with it?