
In this section we shall learn about the Date Methods in JavaScript.
DATE OBJECT: It is used to work with dates and times, date object is created with new Date().
var d = new Date();
document.write(d); // output like "Tue Oct 13 2015 08:32:32 GMT+0530 (India Standard Time)"