Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js check if date object is invalid

const isValid = !Number.isNaN(new Date(timestamp).getTime())
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #check #date #object #invalid
ADD COMMENT
Topic
Name
2+1 =