This worked for me, it uses a regular expression to make sure the date is in the format you want, and then tries to parse the date and recreate it to make sure the output matches the input:
You could expand further to use checkdate to make sure the month day and year are valid as well.