Javascript to keep your website’s copyright date up-to-date

by | Jan 1, 2014 | Tech

It’s a new year, and with that annual milestone comes the annual scramble to update the copyright year on all of your websites. Next year, skip the hassle and replace the date with this one line of Javascript:

<script> document.write(new Date().getFullYear()) </script>

That script will always display the current year, so this time next year, your sites will already be set.