We have learned about the document object in previous article. In this article, we will learn about the date object in JavaScript.The date object is used to manipulate and display date and time. Like the document object, the date object also has methods. The Methods associated with the date object are getDate, getDay, getHours, getMinutes, getSeconds, getYear and more. Each of these methods returns the current time value associated with the method name. For example, getDate will return the current while get minutes will return the current minutes
In order to use the Date object, we need to create an instant of the object using the New keyword.