Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Javascript Get hour from date

let myDate = new Date('2019-11-24 10:33:18');
let hour = myDate.getHours(); // hour = 10
 
PREVIOUS NEXT
Tagged: #Javascript #Get #hour #date
ADD COMMENT
Topic
Name
3+9 =