See Also Applies To
Description
Retrieves the year stored in the specified Date object.
Syntax
objDate.getYear()
Remarks
This method is obsolete, and is provided for backwards compatibility only. Use the getFullYear method instead.The year is an integer value and is returned as the difference between the stored year and 1900. For example, 1996 is returned as 96, and 2025 is returned as 125.
© 1997 by Microsoft Corporation. All rights reserved.
file: /Techref/inet/iis/jscript/htm/js103.htm,
2KB, , updated: 1997年9月30日 04:44, local time: 2025年9月5日 12:52,
©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/inet/iis/jscript/htm/js103.htm"> getYear Method</A>
Did you find what you needed?
Welcome to massmind.org!
Welcome to techref.massmind.org!
.