Forget to Update Your Footer Year? Here's Some Code for That

Recently on a website I noticed a footer wasn't updated with the current year.

From personal experience, if I land on a page with an outdated year, there's a good chance that I feel it might be outdated. And of course I don't want to feel outdated!

It's a simple fix that should definitely be implemented.

Here's a simple script to update your footer with some Javascript code that will make your footer dynamic instead of static!

<script type="text/javascript">
document.write(new Date().getFullYear());

This is a really simple script that I picked up from If you'd like something a bit more sophisticated, use this:

<script type="text/javascript">
new Date().getFullYear()>2010&&document.write("-"+new Date().getFullYear());
</script>, Company.

As stated on their site, "Friends Don't Let Friends Look Dead On The Internet". Hope this helps you!