Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js check string is date

moment("06/22/2015", "MM/DD/YYYY", true).isValid(); // true
moment("06/22/2015", "DD/MM/YYYY", true).isValid(); // false
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #check #string #date
ADD COMMENT
Topic
Name
5+2 =