I have a local JSON file that's being rendered into a DataTable. Everything in the table is fine except the dates are rendered like this: /Date(1350028800000)/ (10/12/2012).
I looked up this thread about converting the data but based on how information is rendered into a DataTable I'm not sure how I would proceed. Any thoughts on this one?
JS snippet:
import $ from 'jquery';
import admissData from '../JSON/atty-admiss.json';
import DataTable from 'datatables.net';
function loadAdmiss() {
    let admissText = admissData.d.results.map(function(val) {
        return {
            "Status": val.admissionstatus,
            // "Date of Admission": val.dateofadmission,
            "Expires": val.expires,
            "Classification": val.classification
        }
    })
    let admissDate = admissData.d.results.map(function(val) {
        let newDate = new Date(admissDate) { //// ?
            return val.dateofadmission
        }
    })
    $('#admissions-table').DataTable({
        columns: [
            { data: "Status" },
            { data: "Date of Admission" }, // ------ DT's method of injecting relevant JSON data into each column
            { data: "Expires" },
            { data: "Classification" }
        ],
        data: admissText, // ---------- how the JSON data enters DT
        lengthChange: false,
        paging: true,
        pagingType: "full_numbers"
    });
}
loadAdmiss();
 
    