Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Is Valid Date ?

const isDateValid = (...val) => !Number.isNaN(new Date(...val).valueOf());

isDateValid("December 17, 1995 03:24:00");
// Result: true
Source by dev.to #
 
PREVIOUS NEXT
Tagged: #Is #Valid #Date
ADD COMMENT
Topic
Name
6+6 =