JavaScript Dates

The getHours() Method

Return the hours of a date as a number (0-23):