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