Name
setUTCFullYear() — NN 4 IE J3 ECMA 1
Synopsis
setUTCFullYear(yearInt
)
Sets all digits of the year for the date specified by the
Date
object but in the UTC time stored internally
by the browser. This method alters the value of the instance of the
Date
object.
Returned Value
New UTC date in milliseconds.
Parameters
-
yearInt
Integer. Navigator allows values no lower than zero. Internet Explorer allows negative year values.
Get Dynamic HTML: The Definitive Reference 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.