Is there an easy way in C# to create Ordinals for a number? For example:

  • 1 returns 1st
  • 2 returns 2nd
  • 3 returns 3rd
  • …etc

Can this be done through String.Format() or are there any functions available to do this?

22 Answers
22

Leave a Reply

Your email address will not be published. Required fields are marked *