Tuesday, August 28, 2001 09:59 AM
You problem is that in the SimpleDateFormat, 'mm' means minutes, while you are looking for 'MM' (month).
You can use either roll or, eventually, the add() method (obviously, if you want to subtract days you need to use a negative amount):
Date curDate = rcal.getTime();
SimpleDateFormat sdf1 = new SimpleDateFormat("yyyyMMdd");