title: Compare 2 dates
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2592501/compare-dates-in-java">Compare dates in Java </a>  </p>
  </blockquote>
  
  
  
  <p>I need compare two dates date1 and date2, the condition is:</p>
  
  <ol>
  <li>date1 &lt; date2</li>
  <li>date1 + 14Month &lt;= date2</li>
  </ol>
  
  <p>For the first condition im using if(date2.after(date1))</p>
  
  <p>But for the second I'm not sure...</p>
  
  <p>I'm using       Calendar calendar = Calendar.getInstance();
              calendar.setTime(fecha1);
              calendar.add(Calendar.MONTH, +14);
              Date nuevaFecha1 = (Date) calendar.getTime();</p>
  
  <p>some idea how validate this</p>