What are the methods for Date class we can use?

The following table lists the methods of Date object

getDate() 

Returns the day of the month (1 through 31) for the date.

getDay() 

Returns the date's day of the week as a number (where 0 represents Sunday and 6 represents Saturday).

getFullYear() 

Returns the four-digit year (2007 instead of just 07).

getHours() 

Returns the date's hours as a number between 0 and 23.

getMilliseconds()

Returns the date's milliseconds.

getMinutes() 

Returns the date's minutes as a number between 0 and 59.

getMonth() 

Returns the month of the date, where 0 represents January and 11 represents December.

getSeconds() 

Returns the date's seconds as a number between 0 and 59.

getTime()

Returns the milliseconds representation of the date; same as valueOf().

getTimezoneOffset()

Returns the number of minutes that the local time zone is off set from UTC. For example, Eastern Standard Time returns 300. This value changes when an area goes into Daylight Saving Time.

getUTCDate() 

Returns the day of the month (1 through 31) for the UTC date.

getUTCDay() 

Returns the UTC date's day of the week as a number (where 0 represents Sunday and 6 represents Saturday).

getUTCFullYear()

Returns the four-digit year of the UTC date value.