Ways to increment a local date by one day. There are three options: LocalDate#plusDays (long daysToAdd) LocalDate#plus (long amountToAdd, TemporalUnit unit): It has got some additional capabilities e.g. you can use it to increment a local date by days, weeks, months, years etc.
Methods of Java YearMonth. It is used to adjust the specified temporal object to have this year-month. It is used to format this year-month using the specified formatter. It is used to get the value of the specified field from this year-month as an int. It is used to check if the year is a leap year, according to the ISO proleptic calendar
public final class Period extends Object implements ChronoPeriod, Serializable. A date-based amount of time in the ISO-8601 calendar system, such as '2 years, 3 months and 4 days'. This class models a quantity or amount of time in terms of years, months and days. See Duration for the time-based equivalent to this class. What I am trying to figure out is how to store a date of 1 year after the current date. import java.util.Date; import java.text.SimpleDateFormat; import java.text.DateFormat; import java.util.Scanner; import java.util.Calendar; DateFormat newDate = new SimpleDateFormat ("MM/dd/yyyy"); Date date = new Date (); startDate = newDate.format (date); .