I am using Visual Studio 2013 with C#.
I am calling one ActionResult method that returns the list of data from Ajax.
The problem here is I am getting date as
I have done it like this:(Is it ok)
function getDateIfDate(d) { var m = d.match(/\/Date\((\d+)\)\//); return (new Date(+m[1])).getMonth() + "/" + (new Date(+m[1])).getDate() + "/" + (new Date(+m[1])).getFullYear(); //return m ? (new Date(+m[1])) : d; }