The getMonth() method returns the month in the specified date according to local time, as a zero-based value (where zero indicates the first month of the year). The value returned by getMonth() is an integer between 0 and 11. 0 corresponds to January, 1 to February, and so on.
The getDay() method is used to get the day of the week for the specified date according to local time, where 0 represents Sunday. The value returned by getDay() is an integer corresponding to the day of the week: 0 for Sunday, 1 for Monday, 2 for Tuesday, and so on.
Sets the milliseconds for a specified date according to local time. Date.prototype.setMinutes() Sets the minutes for a specified date according to local time. Date.prototype.setMonth() Sets the month for a specified date according to local time. Date.prototype.setSeconds() Sets the seconds for a specified date according to local time.