title: Why is Period.between not working as expected
body: <p>Im using the period.between function to get the days between today and july 4th of 2020, but its only printing 16 for some reason, can someone tell me hows the proper way to use this function?</p>
  
  <p>This is my code:</p>
  
  <pre><code>import java.time.ZoneId;
  import java.util.Calendar;
  import java.util.Date;
  
  public class Period4th {
  
      public static void main(String[] args) {
  
          Date today = new Date();
          Date july4 = new Date();
          july4.setDate(4);
          july4.setMonth(6);
          july4.setYear(2020);
  
          Period daysBetween = Period.between(today.toInstant().atZone(ZoneId.systemDefault()).toLocalDate(),
                  july4.toInstant().atZone(ZoneId.systemDefault()).toLocalDate());
          System.out.println(daysBetween.getDays());
  
      }
  
  }
  </code></pre>