I have a problem getting correct date. When I copy dates from one table to another
insert into table1 select some_date from some_table
it inserts wrong date. The problem only occurs for dates with year before 1950. In table1 I have date 1.1.1949 and when I copy it to some_table I get date 2049-1-1
How do I get correct date… 1949-1-1?
You should use:
RRRRis for 2 digit years, assuming same century. Read here: What is the difference between 'YYYY' and 'RRRR' in Oracle SQL