private static string GetSuffix (int dayNumber) { switch (dayNumber) { case 31: case 21: case 1: return "st"; case 22: case 2: return "nd"; case 23: case 3: return "rd"; default: return "th"; } }