I know this will give me the day of the month as a number (11, 21, 23):
11
21
23
SimpleDateFormat formatDayOfMonth = new Simple
public String getDaySuffix(int inDay) { String s = String.valueOf(inDay); if (s.endsWith("1")) { return "st"; } else if (s.endsWith("2")) { return "nd"; } else if (s.endsWith("3")) { return "rd"; } else { return "th"; } }