PDA

View Full Version : Formatting ordinal numbers




tsornin
Nov 6, 2008, 07:41 PM
Is there a function for formatting ordinal numbers (1st, 2nd, 3rd etc)?

I've been dredging through the date formatter and number formatter docco to no avail....



t0mat0
Nov 6, 2008, 07:48 PM
google Ordinal suffix - the 11th, 12th and 13th are special cases if you're being accurate too, else ends in 1 is 1st, ends in 2 is nd ends in 3 ir rd, others are th.