title: How to compare when two dates are within 30 days
body: <p>I'm trying to set my form to specif logic when the two dates are within 30 days.</p>
  
  <pre><code>Date fromDate = form.getFromDate();
  Date toDate = form.getToDate();
  if(fromDate.compareTo(toDate) &gt; 30){ // if the selected date are within one month
  
   } 
  </code></pre>
  
  <p>I want to add like validation to be sure the selected two dates are in month rang</p>