Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

tsornin

macrumors newbie
Original poster
Jul 23, 2002
26
0
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....
 
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.