Reputation: 189
I have two dates in an org.threeten.bp.LocalDateTime
object. I need to find the difference between these two dates in terms of days.
Upvotes: 17
Views: 4158
Reputation: 33000
Use org.threeten.bp.temporal.ChronoUnit.between
:
long days = ChronoUnit.DAYS.between(fromDate, toDate);
Upvotes: 44