Name
Date.getUTCFullYear( ) — return the year (universal time)
Availability
JavaScript 1.2; JScript 3.0; ECMAScript v1
Synopsis
date
.getUTCFullYear( )
Returns
The year that results when date
is
expressed in universal time. The return value is a full four-digit
year, not a two-digit abbreviation.
Get JavaScript: The Definitive Guide, Fourth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.