This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I'm using SimpleDateFormat to change a date into the format dd MMMM yyyy to produce, say, 29 May 2002 Is there any easy way to add on the date ordinal? So in this case it would be 29th May 2002? Thanks
Don't forget that "th" is not the only suffix. I don't see a way to use SimpleDateFormat to do this. I'd use Calendar to extract the day of the month, and switch on the last digit to determine whether to add "st", "nd", "rd", or "th".