How can i parse String "2013-03-31", so i will get - "31 March 2013 Sun". I tried to parse as bellow:
final SimpleDateFormat formatter = new SimpleDateFormat("dd-MM-yyyy DD");
try {
Date data = formatter.parse(eventDate);
System.out.println(data);
} catch (Exception e) {
System.out.println(e.getMessage());
}
And i get Unparseable date: "2013-03-31" (at offset 10)
exception text.
Is that String represented date is correct, and if correct how i must parse it.