Created
May 18, 2010 19:05
-
-
Save johnmichel/405382 to your computer and use it in GitHub Desktop.
Gets the current year
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getYear() { | |
var now = new Date(); | |
return now.getFullYear(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment