The setUTCFullYear() method of the Date object sets the year of the date (according to UTC)

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

    console.log(event.getUTCFullYear());
    // 2020

    event.setUTCFullYear(1980);

    const year = event.getUTCFullYear();

    console.log(year);
    // 1980