JavaScript Get Date Methods

The getDate() method returns the day of the month (1 to 31) of a date. These methods can be used for getting information from a date object.

Code :