views:

56

answers:

2
A: 

No, there is nothing built-in for this purpose. Not sure if its relevant, but consider cultural differences if you span languages/cultures.

Jamiec
Thanks Jamiec. In considering cultures I'm thinking of storing the ordinal specifier in a resouce file so that we can specify specific ones for certain cultures. What do you think of this as a solution?
Jamie Dixon
A: 
kbrimington
needs to handle 11,12, and 13
Woot4Moo
There appear to be some corner cases that your code doesn't incorporate. Have a look at the answers to the duplicate questions.
dtb
Ill put it here as everyone else has in all the other similar SO questions; Your method is broken as 1011 returns 1011st.
Jamiec