Skip to content

Instantly share code, notes, and snippets.

@johnmichel
Created May 18, 2010 19:05
Show Gist options
  • Save johnmichel/405382 to your computer and use it in GitHub Desktop.
Save johnmichel/405382 to your computer and use it in GitHub Desktop.
Gets the current year
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