Right click this window and select "view source" in order to copy the source for this script.
View Source...
This command is the best choice for obtaining the year; it replaces getYear. It returns a 4 digit year and it treated generally the same in all browsers.