Ummm....are you sure on that?
Originally Posted by felgall
var unixtime = 1357027200;
var d1 = new Date(unixtime);
var d2 = new Date(unixtime*1000);
document.write( d1 + "<br/>" + d2 );
Just a tiny bit of difference.
Fri Jan 16 1970 08:57:07 GMT-0800 (Pacific Standard Time)
Tue Jan 01 2013 00:00:00 GMT-0800 (Pacific Standard Time)
I think you meant to say that
will do the job??
var dt = new Date(unixtimestamp * 1000);