Here it split the date that is in the String format check if it was typed like 99/99/9999 or 99-99-9999 or 99.99.9999 so it can recreate it in a new date.