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

Hi ,
I want to know the date format from a variable(String) which has value Example : “10/12/2020” or “20-JUN-2020” etc, Is there any approach to get the format of it?, before converting to date.

Thank you & Regards,
Nikhil

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

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.