var d=new Date();
var displayYear = d.getFullYear();

document.writeln(displayYear);