JavaScript получите текущий год
var currentYear= new Date().getFullYear();
Grepper
var currentYear= new Date().getFullYear();
let today = new Date().toLocaleDateString()
console.log(today)
new Date().getFullYear()