in a different file called Date.java . public static void advanceDate(Date aDate){ //here is where I need to read the date in aDate } After searching online through the Java api I haven't been able to find a way to add a day onto appointment or get the day, month, and year from appointment add a day to that and then save it as a new Date A LocalDate is supposed to represent date units (year, month, day), and not a specific format. The default format used by LocalDate#toString is based on ISO 8601 standard. For a specific format, you need to format it into a String as shown above. It is like representing double d = 5.0 as the 5.000 which is done by formatting d into a String of Returns a value that is the result of subtracting 1900 from the year that contains or begins with the instant in time represented by this Date object, as interpreted in the local time zone. getYear () has an offset of 1900, which you have to add when using LocalDate.of (year, month, day). That's why the year of your calculated Instant is 115. The Javascript Date object can accept one of the following syntax as below, new Date () new Date (milliseconds) new Date (dateString) new Date (year, month, day [, hour, minute, second, millisecond ]) So in your case it is going to call the dateString and parse. So try appending the time as below, Vay Tiền Nhanh Chỉ Cần Cmnd.

java date year month day