I'm trying to convert a String coming as "2014-11-04" from a Json Object, to "Tue,Nov 4" (I think it's "E, MMM d") but without sucess so far.
Here is the code of my last try:
private String convertDateString(String date) {
SimpleDateFormat formatter = new SimpleDateFormat("E, MMM d");
String convertedDate = formatter.format(date);
return convertedDate;
}
Thanks!