date - Getting day of the week from timestamp using JavaScript -


how day of week timestamp in javascript? i'd timestamp specify, not current date.

thanks

var timestamp = 654524560; // unix timestamp in seconds var xx = new date(); xx.settime(timestamp*1000); // javascript timestamps in milliseconds document.write(xx.toutcstring()); document.write(xx.getday()); // day 

Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -