I have a string with a date format, and I want to convert it into a date using TO_DATE.
Since users can have diffrent regional settings on their computers I dont know in which date format the sting is and I sometimes get the error message "ORA-01830: date format picture ends before converting entire input string" when the string mismatch the format I want to convert it into.
TO_DATE('2002-02-02','YYYY-MM-DD') Works fine
TO_DATE('02/02/2002', 'YYYY-MM-DD') Error (obviously)
Is it possible to write some universal conversion, or do any of you have a suggestion to my problem?
Thanks very much!
Regards Maria
Since users can have diffrent regional settings on their computers I dont know in which date format the sting is and I sometimes get the error message "ORA-01830: date format picture ends before converting entire input string" when the string mismatch the format I want to convert it into.
TO_DATE('2002-02-02','YYYY-MM-DD') Works fine
TO_DATE('02/02/2002', 'YYYY-MM-DD') Error (obviously)
Is it possible to write some universal conversion, or do any of you have a suggestion to my problem?
Thanks very much!
Regards Maria