Ustaw rok w JavaScript

var d = new Date();
d.setFullYear(2020);
Delightful Dove