Returns the four-digit year of the UTC date value.
var myDate = new Date(); console.log(myDate.getUTCFullYear());
The code above generates the following result.