Return the year, according to universal time:
The output of the code above will be:
The getUTCFullYear() method returns the year (four digits) of the specified date, according to universal time.
The UTC methods calculate their date assuming that the date object is of local time and date.
Tip: The Universal Coordinated Time (UTC) is the time set by the World Time Standard.
Note: UTC time is the same as GMT time.
![]()
The getUTCFullYear() method is supported in all major browsers.
| Type | Description |
|---|---|
| Number | Four digits representing the year |
| JavaScript Version: | 1.3 |
|---|
Return the UTC year of a specific date:
The result of n will be:
JavaScript Date Object
Your message has been sent to W3Schools.