title: Date Comparison using Java
body: <p>I have two dates:</p>
  
  <ol>
  <li><code>toDate</code> (user input in <code>MM/dd/yyyy</code> format)</li>
  <li><code>currentDate</code> (obtained by <code>new Date()</code>) </li>
  </ol>
  
  <p>I need to compare the <code>currentDate</code> with <code>toDate</code>. I have to display a report only when the <code>toDate</code> is equal to or more than <code>currentDate</code>. How can I do that?</p>