java.time.OffsetDateTime.minus(TemporalAmount amountToSubtract)


java.time.OffsetDateTime.minus(TemporalAmount amountToSubtract)

package com.codingdict;

import java.time.OffsetDateTime;
import java.time.Period;

public class OffsetDateTimeDemo {
   public static void main(String[] args) {

      OffsetDateTime date = OffsetDateTime.parse("2017-02-03T12:30:30+01:00");
      System.out.println(date.minus(Period.ofDays(2)));  
   }
}