34,333
edits
Changes
→Reading the Date and Time from a JavaScript Date Object
var myDate = new Date ("June 20, 2007 12:00:00");
document.write (myDate.getDate() + " " + myDate.getMonth() + " " + myDate.getFullYear() + " " + myDate.getHours() + " " + myDate.getMinutes() + " " + myDate.getSeconds());
// Outputs 20 5 2007 12 0 0
</pre>