Date.prototype.getHours

Returns the hours in a date, using local time.

Syntax

getHours()

Return value

A number representing the hours of a Date.