The known formats are listed below
dd/mm/yyyy (01/01/2015)
d/m/yyyy (1/1/2015)
dd/mm/yy (01/01/15)
d/m/yy (1/1/15)
Other variations will have dash(-), dot(.) or whitespace as field separator.
I am thinking of creating one regex per pattern to keep it maintainable but not sure if there is any better solution. Please share if there any better solution.
Update: The date is part of a large text and I cannot use DateTime.TryParseExact before extracting potential list of dates from the text.