See Also Applies To
Description
Returns the year stored in the Date object according to local time.
Syntax
objDate.getFullYear()
Remarks
To get the year according to Universal Coordinated Time (UTC), use the getUTCFullYear method.
The getFullYear method returns the year as an absolute number. For example, the year 1976 is returned as 1976. This avoids problems with dates occuring at the end of the 20th century.
© 1997 by Microsoft Corporation. All rights reserved.
file: /Techref/inet/iis/jscript/htm/js52.htm,
2KB, , updated: 2008年1月31日 23:46, local time: 2025年9月5日 21:11,
©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/js52.htm"> getFullYear Method</A>
Did you find what you needed?
Welcome to massmind.org!
Welcome to techref.massmind.org!
.