JavaScript Date
Global Objects - Date :
Date :
The built-in JavaScript object 'Date' allows us to work with dates and times displayed as part of the web page. It can be instantiated wherever required using one of the many constructors available.
Once the object of type 'Date' is ready we can access and use the built-in methods. Most of the methods provided by the object 'Date' aim at getting a specific portion of the current time.
Let us first explore the getter methods available on object Date.