I'm trying to get a jodatime
DateTime
object to output in the format that I want. At the moment, my format string is:
dt.toString("EEEE dd\nMMMM YYYY");
This outputs as:
Wednesday 04
June 2014
However I'd like to display the DAY
with the suffix, for example:
1st
, 2nd
, 3rd
, 4th
Is there a built-in way of doing this with jodatime, or do I have to write my own function for this?