I've been searching around for a while now, but I can't seem to find the answer to this small problem.
how to convert string 06-JUL-89 to datetime 06/07/1989? I've tried with code like the following:
TO_CHAR(TO_DATE(BORN,'DD-MON-YY'),'DD/MM/YYYY')
however, the result shows wrong: to be 06/07/2089? how do i solve the problem?
BORNcolumn really a string (e.g.varchar2(9))? Or is it actually already adate, and your client is just currently showing it in that format via your session NLS_DATE_FORMAT setting? If it is data typedatethen you just need to convert that to a string for display, e.g.to_char(born, 'DD/MM/YYYY').