Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

TypeError: date.getHours is not a function

// make sure to call the function on an actual date object!
const date = new Date(dateString);
const hours = date.getHours();
Source by bobbyhadz.com #
 
PREVIOUS NEXT
Tagged: #function
ADD COMMENT
Topic
Name
1+8 =