I have a date of type java.util.Date
I want to subtract three months from it.
Not finding a lot of joy in the API.
You want today - 3 Month formatted as dd MMMM yyyy
SimpleDateFormat format = new SimpleDateFormat("dd MMMM yyyy");
Calendar c = Calendar.getInstance();
c.setTime(new Date());
c.add(Calendar.MONTH, -3);
Date d = c.getTime();
String res = format.format(d);
System.out.println(res);
So this code can do the job ;)