The setFullYear() method of the Date object changes the year for the date according to local time. (The month and day can be passed/changed, too)

    
    const event = new Date('July 20, 2020 21:36:00');

    event.setFullYear(1990);

    const newYear = event.getFullYear();

    console.log(newYear);
    // 1990