Reputation: 1300
I need to convert date format in ORACLE.The current value is 0080-08-24 and i want to convert it into 1980-08-24 How to update above value?
Upvotes: 1
Views: 92
Reputation: 60262
Just for completeness, another solution:
SELECT TO_DATE('0080-08-24','"00"RR-MM-DD') FROM DUAL;
24-AUG-1980
Upvotes: 1
Reputation: 172378
Try this:
update tablename
set datecolumn= add_months(date'0080-08-24',1900*12)
Upvotes: 2