Depreciated. Use setFullYear() instead. The setYear() method of the Date object sets the year for a specified date according to local time but is worse than or incompatible with some newer date methods.

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

    event.setYear(88)

    console.log(event.getYear());
    // 88