I have had good luck with other types of date input, but milliseconds do not work in Max like they do in a web browser.
// inlets and outlets
inlets = 1;
outlets = 1;
var d=new Date(millisec);
post (millisec + " " + mo + " " + dt + " " + yr + "n");