title: Why does Java's Date.getTime() returns an incorrect response for January?
body: <p>The code for calculating the date in milliseconds is:</p>
  
  <pre><code>//installment date converted to milliseconds
  long localDateInstall = installDate.getTime();
  
  //installment date converted to milliseconds
  long localDatePay = payDate.getTime();
  </code></pre>
  
  <p>and here I calculate the number of days between these dates:</p>
  
  <pre><code>days=Math.abs((localDatePay - localDateInstall))/86400000;
  </code></pre>
  
  <p>When I want to test it, I enter <code>1/Jan/2012</code> for <code>localDateInstall</code> and <code>1/Feb/2012</code> for <code>localDatePay</code>. The result is: <strong>29 Days</strong>. What is the problem? Thanks</p>