getUTCHours < Date < JavaScript
The getUTCHours() method of the Date object returns the hours for the date according to universal time.
const date = new Date('July 20, 2020 23:36:00 GMT+11:00');
const date1 = new Date('July 20, 2020 23:36:00 GMT-11:00');
const utcHours = date.getUTCHours();
console.log(utcHours);
// 12
const utcHours1 = date1.getUTCHours();
console.log(utcHours1);
// 10