JavaScript SetYear
CSGNetwork FREE Source Code, Javascript Source, and Code Snippets!
CSGNetwork Custom Search
     Bookmark and Share
Top Free Apps

Right click this window and select "view source" in order to copy the source for this script.

View Source...

This command is outdated, no pun intended. It treats the output differently in different browsers and may give a 2, 3 or 4 year answer. IE generally accepts a 4 character year from IE4 and up but others may accept a 2 year date for years between 1900 and 1999, allowing you to add 1900 plus the 2 digit number. Some browsers accept a 3 digit number for years 2000 and up, allowing you to add 1900 plus the number. We suggest the use of setFullYear.

Bookmark and Share
Registered® Trademark™ and Copyrightę 1973 - CSG, Computer Support Group, Inc. and CSGNetwork.Com All Rights Reserved