I have a controller action that effectively simply returns a JsonResult of my model. So, in my method I have something like the following:
return new JsonRes
You can use this method:
String.prototype.jsonToDate = function(){ try{ var date; eval(("date = new " + this).replace(/\//g,'')); return date; } catch(e){ return new Date(0); } };