I have a String "Saturday, Oct, 25th, 11:40"
What format does this date has? How can I parse the ordinal indicator?
Here is how i want to convert it
private String changeDateFormat(String stringDate){
DateFormat dateFormat = new SimpleDateFormat("DD, MM, ddth, hh:mm");
try {
Date date = dateFormat.parse(stringDate);
dateFormat = new SimpleDateFormat("ddMMMyyyy");
stringDate=dateFormat.format(date);
} catch (ParseException e) {
e.printStackTrace();
}
return stringDate.toUpperCase();
}