Java tutorial
import java.time.OffsetDateTime; import java.time.Period; public class Main { public static void main(String[] args) { OffsetDateTime o = OffsetDateTime.now(); OffsetDateTime d = o.plus(Period.ofDays(2)); System.out.println(d); } }