Possible Duplicate:
How to check if a string is a legal “dd/mm/yyyy” date?
I have a a regular text field that I want to validate that im using for date of birth.
it's like dd/mm/yyyy. Im wondering how i can check that the user entered the date in the correct format with the slashes. I have a php script to calculate the age from the entered data and strips the slashes in order to do so. I figure i'd run with that, but just in case a user enters it wrong, well lol, you know how that is...
Any ideas?