src/main/webapp/js/Common.js
// Converting C# date format ti Json Data

Converting C# date format ti Json Data
Converting C# date format ti Json Data
function ConvertToJsonDate(value) {
    var monthShortNames = ["Jan", "Feb", "Mar", "Apr", "May", "Jun","Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
        var pattern = /Date\(([^)]+)\)/;
        var results = pattern.exec(value);
        var dt = new Date(parseFloat(results[1]));
        return dt.getDate() + "-" + monthShortNames[dt.getMonth()] + "-" + dt.getFullYear();
}
function ConvertToJsonDate ( value ) { var monthShortNames = [ "Jan" , "Feb" , "Mar" , "Apr" , "May" , "Jun" , "Jul" , "Aug" , "Sep" , "Oct" , "Nov" , "Dec" ] ; var pattern = / Date\(([^)]+)\) / ; var results = pattern . exec ( value ) ; var dt = new Date ( parseFloat ( results [ 1 ] ) ) ; return dt . getDate ( ) + "-" + monthShortNames [ dt . getMonth ( ) ] + "-" + dt . getFullYear ( ) ; }
Converting C# date format ti Json Data
Converting C# date format ti Json Data