jQuery - Dynamic Copyright Year

date, jquery

Solution

$('#spanYear').html(new Date().getFullYear());

The biggest issue being that the client can change the copyright by changing the clock on their own computer ;)

Problem

I have recently been running into alot of my clients coming to me in the last month asking me to update their Copyright on their sites to reflect 2010. Is it possible to write a small snippet with jQuery that automatically populated the year? When Jan 1st 2011 rolls around, the text would automatically change from 2010 to 2011? Thanks.

Original source