title: How to get current date - two weeks date in Java?
body: <p>I have today's date in this string format <code>2014-05-08</code> and I needed to get the date of  2 weeks prior the currents date.</p>
  
  <p>So the data I should be getting back is - <code>2014-04-24</code>.</p>
  
  <pre><code>        String currentDate= dateFormat.format(date); //2014-05-08
  
          String dateBefore2Weeks = currentDate- 2 week;
  </code></pre>
  
  <p>But I am not sure how do I extract date of two weeks prior to current date in Java?</p>