java.time.LocalDateTime.plus(TemporalAmount amountToAdd)


java.time.LocalDateTime.plus(TemporalAmount amountToAdd)

package com.codingdict;

import java.time.LocalDateTime;
import java.time.Period;

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

      LocalDateTime date = LocalDateTime.parse("2017-02-03T10:15:30");
      LocalDateTime date1 = date.plus(Period.ofDays(10));
      System.out.println(date1);  
   }
}