new Date().getFullYear(); // This will get you the current year
let currentYear= new Date().getFullYear();
new Date().getFullYear()
// returns the current year
const Year = new Date().getFullYear();
console.log(Year)
var currentYear= new Date().getFullYear();
// should use moment library
https://momentjs.com/