getFullYear

Gets the year, using local time.

MDN Reference