title: Comparing dates in Java - only years, months and days
body: <p>I'm trying to compare to dates object. Only one problem is that I want to compare just days, month and years.</p>
  
  <pre><code>/* toString output
  mydate 2013-08-23
  current date: Thu Aug 23 14:15:34 CEST 2013
  </code></pre>
  
  <p>If I compare just days ( 23-08-2013 ) dates are equal, if I'm using .after() .before() methods
  dates are diffrent. </p>
  
  <p>Is there is Java method that compares only days, month, years in easy way or do I have to compare each value ?</p>