Day After Tomorrow's Date

In order to get day-after-tomorrow's date, first find the current date, and then add two days to it.

The plus method will return a copy of the date with the specified amount added.


import java.time.LocalDate;
import java.time.Period;

public final class DateUtility {

    private DateUtility() {}

    public static LocalDate getDayAfterTomorrow() {
        return LocalDate.now().plus(Period.ofDays(2));
    }

}