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
Post a Comment