Skip to content

Instantly share code, notes, and snippets.

Created November 6, 2010 23:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/665793 to your computer and use it in GitHub Desktop.
Save anonymous/665793 to your computer and use it in GitHub Desktop.
problems~
<script type="text/javascript">
var sDate=new Date();
sDate.setFullYear(2011,0,1);
var today = new Date();
if (sDate>today)
{
document.write(getFullYear());
}
else
{
document.write('2010-'getFullYear());
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment