|
-
August 28th, 2001, 11:28 AM
#2
Re: Date minus X days
Try setting the time before you start rolling.
So: Calendar.getInstance() (don't use Gregorian directly)
and then rcal.setTime(date)
date will come from strDate:
So:
SimpleDateFormat sdf = new SimpleDataFormat("yyyyMMdd"); // this correct? yyyyMMdd? mm is minutes
Date date = sdf.parse(strDate);
Bayard
[email protected]
http://www.generationjava.com
Brainbench MVP for Java
http://www.brainbench.com
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|