Name
Date.getFullYear() — return the year field of a Date
Synopsis
date
.
getFullYear
()
Returns
The year that results when date
is expressed in local time. The return value is a full four-digit
year, including the century, not a two-digit
abbreviation.
Get JavaScript: The Definitive Guide, 6th 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.