javascript get hour from date

JavaScript
var myDate = new Date(2019, 11, 24, 10, 33);
var hour = myDate.getHours();const birthday = new Date('March 13, 08 04:20');

console.log(birthday.getHours());
// expected output: 4
Source

Also in JavaScript: