Some of the dates in a date column have an incorrect year. How do I change the first two digits of the year?
For example:
select
ID,
to_char(END_DT,'yyyy-mm-dd hh:mi:ss') as dt
From DB
Would result:
ID dt
1 0207-08-10 12:00:00
2 0208-03-31 12:00:00
3 0200-11-10 12:00:00
I want the results to look like this:
ID dt
1 2007-08-10 12:00:00
2 2008-03-31 12:00:00
3 2000-11-10 12:00:00
If you just want to “get” the correct date, you can use something like