Dfault TimeZone GMT-3.00. I am parsing new Date("1900/01/01").toString using the parse method of SimpleDateFormat.
The Result i get is Sun Dec 31 23:15:16 UYT 1899 instead of Mon Jan 01 00:00:00 UYT 1900
I can't understand why is the result different.
PS: If i change the TimeZone to GMT +5.30 the result is as expected.
According to UYT timezone changes at timeanddate.com, UYT timezone was UTC-3.44.44 prior to 1920 rather than UTC-3.00, so that your result looks correct.
are you using this code?
SimpleDateFormat sdf = new SimpleDateFormat("yyyy/dd/MM");
System.out.println(sdf.parse("1900/01/01"));
Maybe you got the wrong symbols...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With