Returns the UTC date's hours as a number between 0 and 23.
var myDate = new Date(); console.log(myDate.getUTCHours());
The code above generates the following result.