In SQL Server Database the date showing as 06-Feb-17 7:42:14 PM. But in Jquery DataTable this date is showing as /Date(1486388669090)/
What I have to do if I want to show the date exactly as 06-Feb-17 7:42:14 PM format and "dd/mm/yy" format??
Here is my code:
$(document).ready(function () {
$('#myTable').DataTable({
"ajax": {
"url": "/Employees/LoadData",
"type": "GET",
"datatype": "json"
},
"columns" : [
{ "data": "EmployeeName", "autoWidth": true },
{ "data": "Department", "autoWidth": true },
{ "data": "Age", "autoWidth": true },
{ "data": "Gender", "autoWidth": true },
{
"data": "CreatedOn",// This is my date
}
]
});
});
Any appropriate help will be highly appreciated. Thanks!