Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js validate date object

function isValidDate(dateObject){
    return new Date(dateObject).toString() !== 'Invalid Date';
}
 
PREVIOUS NEXT
Tagged: #js #validate #date #object
ADD COMMENT
Topic
Name
4+5 =