Select Page

Converting SAS date to Javascript datetime (in Javascript)

Converting a SAS date or datetime to javascript isn’t hard, but still – it should be easy to google for!   var dtSAS=20563;   var dtJS=new Date(+new Date(1960,0,1) + dtSAS * 86400000);   alert(dtJS.toUTCString()); Right, that should get rid of 95% of...