Answers for "typescript how to check if string is a date"

0

typescript how to check if string is a date

var isDate = function(date) {
    return (new Date(date) !== "Invalid Date") && !isNaN(new Date(date));
}
Posted by: Guest on May-31-2021

Code answers related to "typescript how to check if string is a date"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language