var currentYear= new Date().getFullYear();
new Date().getFullYear(); // This will get you the current year
document.write(new Date().getFullYear());