getYear

Commons
stable

Returns the full four-digit year of a native Date object. A thin, named wrapper around Date.prototype.getFullYear() that keeps date utility code readable.