The getUTCMonth() method of the Date object returns the month for the date according to universal time, as a zero-based value (where zero indicates the first month of the year).

    
    const date1 = new Date('December 31, 1975, 23:15:30 GMT+11:00');
    const date2 = new Date('December 31, 1975, 23:15:30 GMT-11:00');

    // December
    console.log(date1.getUTCMonth());
    // 11

    // January
    console.log(date2.getUTCMonth());
    // 0