July 1998
Intermediate to advanced
1456 pages
65h 5m
English
setYear() — NN 2 IE J1 ECMA 1
setYear(yearInt)Sets the year of a Date object. Use
setFullYear() if the browser versions you support
allow it.
New date in milliseconds.
yearInt
Integer between and 99 for the years 1900 to 1999; four-digit integer starting with 2000. Four-digit integers also accepted for years before 2000.
Read now
Unlock full access