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