I need to have the following date formatted while using the application with an US locale: January 1st, July 2nd, November 28th
How should I do that?
Searched with NSDateFormatter
, but I'm not able to set an appropriate format and default formats are too long.
this will give you the required format but you need to add some condition to add proper 'st','nd','rd' etc. like this
might this be helpful to you