The getHours() method is used to get the hour of a given date according to local time.
The value returned by getHours() method is an integer between 0 and 23.
JavaScript getHours() Method : Date Object

JavaScript getHours() Method : Date Object
Website Link | Visit Link Here |
---|---|
Category | Functions |