Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

typescript how to check if string is a date

var isDate = function(date) {
    return (new Date(date) !== "Invalid Date") && !isNaN(new Date(date));
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #typescript #check #string #date
ADD COMMENT
Topic
Name
8+7 =