Skip to content

Instantly share code, notes, and snippets.

@LouisWhit
Created June 11, 2013 22:23
Show Gist options
  • Select an option

  • Save LouisWhit/5761290 to your computer and use it in GitHub Desktop.

Select an option

Save LouisWhit/5761290 to your computer and use it in GitHub Desktop.
Lightweight get current year script.
<script type="text/javascript">
var d = new Date();
var y = d.getFullYear();
document.write(y);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment