Question: how to subtract months in java?
Answer: println("Current Date and Time = " + calendar. getTime()); Now, let us decrement the months using the calendar. add() method and Calendar.