To celebrate the 25th anniversary of the World Wide Web, we’re sharing a little HTTP love for the hard-working architects who not only design buildings, but also are the architects of their own websites.
One thing pretty much all architects have in common is a website, and one of the easiest ways to keep your website current is to make sure that your copyright notice says the correct year. Even if you’ve updated nothing else, keep your date current.
Its easy to automate.
Below is the code for an automatic script that will generate the current year. We use the code on our own website to automatically keep our copyright date current. Earlier this year when the ball landed in New York, we didn’t have to worry that our copyright would still say 2013.
now = new Date
if (theYear < 1900)
So, just copy and paste this code into where you normally put the year, and you're done. If you view this page in 10 years, the number above will say 2024, automatically.
We’re sharing this code for free, just like the Tim Berners-Lee would have wanted it