Changes

JavaScript Date Object

1 byte added, 16:51, 8 May 2007
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>