var year

year=new Date();

document.write(year.getFullYear());
