Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

check if date time string is invalid date js

const isValidDate = function(date) {
    return (new Date(date) !== "Invalid Date") && !isNaN(new Date(date));
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #date #time #string #invalid #date #js
ADD COMMENT
Topic
Name
7+1 =