I have a date of type java.util.Date
java.util.Date
I want to subtract three months from it.
Not finding a lot of joy in the API.
Ok with java.sql.Date (subclass of java.util.Date) and JDK's 8 LocalDate help you can do it in one line ;)
Date date = java.sql.Date.valueOf(LocalDate.now().minus(3, ChronoUnit.MONTHS));