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