<!-- Hide from old browsers -->


var d = new Date();
document.write(d.getYear());


<!-- Stop hiding from old browsers -->