Run ❯
Get your
own
website
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
JavaScript Dates
The getHours() Method
getHours() returns the hour (from 0 to 23) of a date: