JavaScript getHours()

The getHours() method returns the hours of a date as a number (0-23):




Hour:

Equation: