I\'ve started to work on Javascript recently. What I am testing is checking the DoB in valid format. Next step will be checking the age.
What my HTML code includes
If you're using moment then that's the single line code:
moment
moment(date).format("DD/MM/YYYY").isValid()