I am working in a project where I create a grid using data from database, in my controller I have this code
List<IEmployeeEntity> list = new Employee(connectionString).GetEmployeeRecord();
It returns me list of employees with some date and further I convert it to Json using return Json(list);
But the date format I got in my java script grid like /Date(1325075075113)/
My javascript code is like
$.ajax({
url: ../getRecord,
type: 'POST',
data: {},
async: false,
success: function (result) {
if (result !== "") {
Create Grid
}
}
});
its not javascript issue i think you need to formate you date in you code as you required i.e in C# code only.
somthing like below might help you ..
or
try this solution when your property is of type datetime because in first one it will give you an error if the property type is datetime