Conversion of Date from .Net to JS

by manoj

JavaScript

function dateFormating (date) {
    return d = new Date(parseInt(date.replace(/\/Date\((-?\d+)\)\//, '$1')));  //if u need >Net Time Stamp to date
    };
var a =dateFormating("/Date(1408482000000)/");
alert(a);