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