How to Check the date format from a given input(string)

have a look on the different links for parsing multi formats

Checking in Advance if string is parseable we can do with tryParseExact (also with the arrFormats, handling multiple formats)

1 Like