In my application i want to change date format. In my application getting the date like this 04/07/20. But in my application I want to display like this 07, April 20. For that I using the following code
try {
String date="04/07/20"
SimpleDateFormat spf = new SimpleDateFormat("mm/dd/yy")
Date newDate = spf.parse(date);
SimpleDateFormat new_spf = new SimpleDateFormat("dd MMMM, yy");
date = new_spf.format(newDate);
System.out.println(date);
} catch (Exception e) {
}
But the output getting like this 07 January, 20, But I need 07 April, 20.
Can you share the suggestions for this one.
Thanks In Advance.