I have a jQuery table with a column containing dates in milliseconds format. I would like to convert from milliseconds to mm/dd/yyyy. I haven't been able to figure out how to convert the date value and integrate it into my script.
Please check out my fiddle and offer any advice you may have: http://jsfiddle.net/tommy6s/eLbq2wvh/
$(document).ready(function() {
$.getJSON("http://www.corsproxy.com/dvl.thomascooper.com/data/json_return.json", function(data) {
//static table head
$('table.stats').append("<th>" + "</th>" + "<th>" + "Date" + "</th>" + "<th>" + "Brand" + "</th>" + "<th>" + "Author" + "</th>" + "<th>" + "Title" + "</th>" + "<th>" + "Posts" + "</th>" + "<th>" + "Exposure" + "</th>" + "<th>" + "Engagement" + "</th>");
//loop through json data
$.each(data.data.rows, function(i, val) {
//+1 to number each row starting at 1
var rowNum = i + 1;
//create table rows and cell and populate with data
$('table.stats').append("<tr>" + "<td>" + rowNum + "</td>" + "<td>" + val[0].value + "</td>" + "<td>" + val[1].value + "</td>" + "<td>" + val[2] + "</td>" + "<td>" + val[3].label + "</td>" + "<td>" + val[4].values[0] + "</td>" + "<td>" + val[5].values[0] + "</td>" + "<td>" + val[6].values[0] + "</td>" + "</tr>");
});
});
});