get hour from new date javascript code example
Example: js date get hours
const birthday = new Date('March 13, 08 04:20');
console.log(birthday.getHours());
// expected output: 4
const birthday = new Date('March 13, 08 04:20');
console.log(birthday.getHours());
// expected output: 4