Is there universal way to convert a string to date in PostgreSQL if you don’t know the string format in advance?
For example: the string date may be in yyyy-mm-dd or dd-mm-yyyy format or something else.
Thanks!
Is there universal way to convert a string to date in PostgreSQL if you don’t know the string format in advance?
For example: the string date may be in yyyy-mm-dd or dd-mm-yyyy format or something else.
Thanks!
There is no universal parameter to handle any date format. You have the DateStyle parameter and and the date/time interpretation rules.