Given a string str, how could I check if it is in the dd/mm/yyyy format and contains a legal date ?
str
dd/mm/yyyy
Some examples:
bla bla
Personally, I think the best solution would be to modify the UI to use dropdowns for the month and possibly day selections.
Trying to figure out if 1/2/2001 is January 2nd or February 1st based solely on that input string is impossible.