how to get hours in js code example Example: javascript get hour from date var myDate = new Date(2019, 11, 24, 10, 33); var hour = myDate.getHours();