I'm trying to calculate the difference between two dates in java. For example, I have:
LocalDate TodayDate = LocalDate.now(); //That returns me ==> year/month/day
LocalDate ExpireDay = LocalDate.of("2018-01-12");
I want to know how many days are between the two dates, how can I do?
I tried using ExpireDay.minus(Period.ofDays());
but it doesn't work... :(