SimpleDateFormat parsing is not correct
I'm using SimpleDateFormat to parse Date String ase bellow:
final SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-DD");
System.out.println(formatter.parse(firstDate));
And for String "2011-04-02" i got after parsing "Sun Jan 02 00:00:00 EET
2011" so Month is Jan there but must be Apr.
What i'm doing wrong?
No comments:
Post a Comment