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