I'm having difficulty parsing a string into data format using JavaScript. The issue is that there are no leading zeros. For example, in my JSON:
1/1/1993 is listed as:
33970
I've tried:
function dateMatch(data, value) {
var formatTime = d3.timeFormat("%B %d, %Y");
var d = formatTime(new Date(data.properties.Sign_Date.toString()));
console.log(d)
}
No luck! What can I try next?