How to convert a string to date without knowing the format
We have a service which returns a date in the response. Here the date can be in various formats and it is not consistent.
For example, it returns date as "05-MAR-2021" or "2021-03-05" or etc... .
Now we need to convert this date in string format to Date format YYYYMMDD.
Any leads on this please?