Q:

Need to find days difference between two org.threeten.bp.LocalDateTime dates in java

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.

A:

Use org.threeten.bp.temporal.ChronoUnit.between:
long days = ChronoUnit.DAYS.between(fromDate, toDate);  

