TO_DATE

Use the TO_DATE function to convert a string to a date. The first parameter must be a string. The second parameter is a date expression, such as ‘yyyy-MM-dd’.

Syntax

TO_DATE('2020-05-07', 'yyyy-MM-dd')