i have the following jquery datatable
column 'DOB'
associated with a function
columns:[
{
'data': 'DOB',
'visible': false,
'render': function (jsonDate) {
var date = new Date(parseInt(jsonDate.substr(6)));
var month = date.getMonth() + 1;
return month + '/' + date.getDate() + '/' + date.getFullYear();
}
},
]
but when i retrieve the value it retrieves as Json
date /Date(-133335000000)/
why this happens and how do i fix this?