Date.getUTCFullYear

getUTCFullYear – Get the year, according to universal time (four digits).

Description

Date.getUTCFullYear()

Return values

Integer

Examples

Example #1 – getUTCFullYear example
console.log(new Date().getUTCFullYear()); // Gets the current year, according to UTC.

External references