Hi All,
I am pretty new to Java. I had worked on Java a bit around 12 years ago, so please bear with any stupid questions.
We have a Project which is in house built for ETL Purpose. Unfortunately the Developer isnt with organization anymore and now the responsibility has come upon me.
The issue we are facing is whenever the Input date is format "DD-MON-YY" ex "10-Mar-21" the Java is converting the date to "1921-03-10 00:00:00.000"
The flow of Project is we provide a SQL Query which is used to read data from a source database
Select column1 from table1
The few processing's are done and then a SQL Statement is prepared to insert into destination database
Insert into DestTable1(Column1)
Values('1921-03-10 00:00:00.000')
I think whenever the Year is supplied in two digits we are facing this issue.
Can anyone please let me know what might be the reason for this 100 years back conversion and where can i look in code for this and what would i have do to fix this?
Many thanks in advance.