Mike Lipay wrote:Is there something special that needs to be done for dates, or are dates not editable?
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
I didn't want to post the code if editing dates wasn't possible.
Paul Clapham wrote:The Date class isn't deprecated, so I expect your compiler error didn't really say that. Posting the actual error message also helps, whereas posting crude paraphrases of the error message is just distracting.
Paul Clapham wrote:Okay. So what does that error message actually tell you about the Date class? And what does the API documentation recommend you should do instead?
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Mike Lipay wrote:
It tells me that Date is on the way out, ...
Rob Camick wrote:Well I give up, since you are obviously paying no attention to what I've said in this posting or others.
Why did you last reply include code for a Calendar object? This posting is about using the Date class not the Calendar class. The SSCCE you posted demonstrated your problem and you only need to change one line to fix it. Both Rob's have told you how to fix it.
I changed GregorianCalendar to Date,
Consider Paul's rocket mass heater. |