Click here to Skip to main content
15,888,454 members
Articles / Programming Languages / C#

How To Append 'st', 'nd', 'rd' or 'th' To Day Numbers in Dates

Rate me:
Please Sign up or sign in to vote.
3.92/5 (9 votes)
16 Nov 2007CPOL4 min read 161.4K   1.2K   40  
A custom type formatter to append the appropriate 'st/nd/rd/th' text to day numbers when outputting date strings

Views

Daily Counts

Downloads

Weekly Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect oo.magic
United Kingdom United Kingdom
Mark Gwilliam is a freelance .Net consultant based in the UK specialising in .Net architecture, design and coding.

He has been working in IT for around 15 years and has worked primarily in the financial sector and is always keen to lead, learn, follow or teach

Comments and Discussions