Design Validation Format

How would I create a string in python that is designed for date of birth?
Say I had a string called test=input(‘Please enter your date of birth’)
How could I create a validation where it accepts this format DD/MM/YYYY
here you can get a good overview:
http://seehuhn.de/pages/pdate
Rajiv Ghatikar on the new Solid Edge ST4