Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js date get hours

const birthday = new Date('March 13, 08 04:20');

console.log(birthday.getHours());
// expected output: 4
 
PREVIOUS NEXT
Tagged: #js #date #hours
ADD COMMENT
Topic
Name
3+6 =