Iam trying to calculate new date based on provided no. of days to base date(i.e current date or any specific date). Linux shell can do by date -d "2020-10-19 30 days"
2020-10-19 is base date 30 is new date after 30 days.
import java.time.LocalDate;
public class Main {
public static void main(String[] args) {
final LocalDate now = LocalDate.now();
final LocalDate nowPlus30Days = now.plusDays(30);
System.out.println(nowPlus30Days);
}
}