Calendar Minus Days Java. The calendar class in java offers a method called add () that allows us to modify a date by adding or subtracting a specified amount of time. How to subtract days from local date in java by using minusdays () method.
We can use calendar class of java and add method (). To subtract days from a calendar object in java, you can use the calendar.add() method, which allows you to add or subtract time fields.