Java 7 get number of days between 2 dates with correct calculation for leap years
<p>I've seen many examples on Java 7 how to calculate days between 2 dates but I have found out that they do not include leap years correctly.</p>

<p>I've seen this example, but apparently leap years are not included: </p>

<p><a href="https://stackoverflow.com/questions/20165564/calculating-days-between-two-dates-with-in-java">Calculating days between two dates with in java</a></p>

<p><strong>So I would like to see correct Java code how to get number of days without using Joda Time and Java 8?</strong></p>