title: Get next week and previous week staring and ending dates in java
body: <p>I want to get the starting and ending dates of a week
  for example</p>
  
  <p>2012-05-06 to 2012-05-12 <br/>
  2012-05-13 to 2012-05-19</p>
  
  <p>The code I have written is </p>
  
  <pre><code>currWeekCalender.add(Calendar.WEEK_OF_YEAR, 1);
  
      String dateStart =  currWeekCalender.get(Calendar.YEAR) + "-" + addZero((currWeekCalender.get(Calendar.MONTH) + 1)) + "-" + addZero(currWeekCalender.getFirstDayOfWeek());
      currWeekCalender.add(Calendar.DAY_OF_MONTH,7);
      String dateEnd =  currWeekCalender.get(Calendar.YEAR) + "-" + addZero((currWeekCalender.get(Calendar.MONTH) + 1)) + "-" + addZero(currWeekCalender.get(Calendar.DAY_OF_MONTH));
  </code></pre>
  
  <p>but the results are not correct, also I want previous weeks date.</p>
  
  <p>Thanks</p>