DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
4+1 =
Submit