var time=new Date();

document.write(time.getFullYear());