title: Need to compare date object without seconds
body: <p>I take two date time object in database. And I need to compare it without seconds.</p>
  
  <p>Date 1 Value :  2018-05-25T13:55:24.000+05:30
  Date 2 value :  2018-05-31T08:31:00.000+05:30</p>
  
  <p>I need to check date 1 is after date 2. </p>
  
  <pre><code>if(Checks.checkNotNull(dateTime) &amp;&amp; (partiallyInvalidateDate.isAfter(dateTime))){
      code = null;
    }
  </code></pre>
  
  <p>but I need to do above comparison without second part. Need some expert help to do it.</p>