I am using this code to set an old date and store it in Database, but when I retrieve it from the Database the value is changed from what I have stored. could you please point me to the correct direction for debugging.
new Timestamp(new SimpleDateFormat("dd-MMM-yy").parse("31-DEC-79").getTime())
The value I see in the Database is 1981-07-12 00:00:00.0 why is there a difference?
Sorry About the confusion, i switched the date with month when parsing it. it is working and storing as it should.