Date.prototype.setFullYear

Sets the year of the Date object using local time.

Syntax

setFullYear(year, month?, day?)

Parameters