title: Compare if two dates are within same week in android
body: <p>I have two dates.Got them from something like......</p>
  <pre><code>Calendar c=Calendar.getInstance();
  year=c.get(c.YEAR);
  month=c.get(c.MONTH);
  month++;
  date=c.get(c.DATE);
  </code></pre>
  <p>and other date is broken into date2,month2</p>
  <p><strong>Now I want to see if both of them are in the same week.</strong></p>
  <p>It's possible through lots of calculation and logic.Problem occurs when 1st date is suppose 03 March and 2nd date is 28Feb. Both of them are in same week but difficult to compare/check that. So I want to know if there is any built in function or any way to compare them easily.Please help..........</p>