I know this will give me the day of the month as a number (11, 21, 23):
11
21
23
SimpleDateFormat formatDayOfMonth = new Simple
String ordinal(int num) { String[] suffix = {"th", "st", "nd", "rd", "th", "th", "th", "th", "th", "th"}; int m = num % 100; return String.valueOf(num) + suffix[(m > 3 && m < 21) ? 0 : (m % 10)]; }