try see compare understand learn JavaScript Regular Expressions
Date Validations

Match the date values in the following formats:

  • dd-mm-yyyy
  • dd/mm/yyyy
  • dd.mm.yyyy

The year should be from 1900 to 2099.