How to convert a string to a date in Oracle database? | Eklavya Online

How to convert a string to a date in Oracle database?

Syntax: to_date (string , format)

Let us take an example :

to_date (‘2012-12-12’, ‘YYYY/MM/DD’)
It will return December 12, 2012.