I have date in dd/mm/yyyy format but i want to parse it in something like 2nd May or 5th June
I'm able to parse it to 2 May or 5 June but I need to append that nd or th with date too
Can anyone please suggest something using DateFormat
or SimpleDateFormat
class?
Edit: A little snapshot of what I've already tried:-
Date d = Date.parse("20/6/2013");
SimpleDateFormat sdf = new SimpleDateFormat("dd MMM");
String dateString = sdf.format(d);