Make “Copyright 2006″ become “Copyright 2006-2007″ when 2007 arrives.
Rather than update copyright dates by hand or with server side code, it’s sometimes useful to use Javascript.
Using Javascript and the users local time we can convert the following markup.
The script below converts will convert the text to say 2006-2007 when we are in 2007.
Now we really need to add this code unobtrusively which we can do with the following markup.
Simple.