I want to parse a java Date object to the format like below
I tied the below codes
DateFormat df = new SimpleDateFormat("yyyy-MM-dd");
DateFormat dfz = new SimpleDateFormat("dd MMM yyyy");
Date date = new Date();
String d = dfz.format(date);
System.out.println(d);
then the out put will be like
I checked this SO question and using that I could get the below format
Is there any built-in functionality in java to parse a date object to the first where the th
is a superscript
format or do I need to do it manually ? And how to do it manually ?
What is the easiest way to do this ?