parse date receiving from mvc jsonresult

if we received data like this:

,"Date":"\/Date(1410969600000)\/",

we can parse it like this:

var t = eval('new ' + time.toString().replace(/\//g, ''));
var M = t.getMonth() + 1 + '';
var d = t.getDate() + '';

 

你可能感兴趣的:(result)