Date.setYear() Method
Name
Date.setYear() Method---set the year field of a Date
Navigator 2.0, Internet Explorer 3.0
Synopsis
- year
-
An integer which is set as the year value for the Date object
date. Usually, you should use four-digit format
for year specifications. For example, specify 2001
for the year 2001. For years within the 20th century, you can also
subtract 1900 and specify the date in two-digit format. For example, you
could specify 97 for the year 1997.
Date.setTime()
Date.toGMTString()
file: /Techref/language/java/script/definitive/refp_66.htm,
4KB, , updated: 2019年10月14日 16:00, local time: 2025年10月7日 04:06,
©2025 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE.
Questions?<A HREF="http://techref.massmind.org/techref/language/java/script/definitive/refp_66.htm"> [Chapter 21] Reference: Date.setYear()</A>
Did you find what you needed?
Welcome to massmind.org!
Welcome to techref.massmind.org!
.