globalsDate()prototypeDate.prototype.getHours()Version: 3.37.0On this pageDate.prototype.getHours() The getHours() method returns the hour for the specified date, according to local time. Syntax getHours() Return value An integer number, between 0 and 23, representing the hour for the given date according to local time.