The Date object offers you a wealth of date-related properties and methods.
To use the Date object, the first thing you must do is to assign it a variable name (similar to how you use the Array object):
Now that you have done this, you can start to use the Date object.
Using new Date() with no arguments returns the current date and time to which the system is set.
The range of dates that can be represented in a Date object is approximately 285,616 years on either side of January 1, 1970!
The first thing you can try out is retrieving the full year using the getFullYear method ...