TypeScript code snippet – How to check if string is a date?
var isDate = function(date) { return (new Date(date) !== "Invalid Date") && !isNaN(new Date(date)); }
var isDate = function(date) { return (new Date(date) !== "Invalid Date") && !isNaN(new Date(date)); }