This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes dates Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "dates" Watch "dates" New topic
Author

dates

David Jon
Greenhorn

Joined: Feb 16, 2001
Posts: 17
any one know how I can find out the date 7 days agoe? when the only object I have currently available is Date. essentially I want to do something like :

new Date() - 7days.
Any help appreciated.
Thanks,
DJ.
Art Metzer
Ranch Hand

Joined: Oct 31, 2000
Posts: 241
Hi, David, let us know if this fills the bill?

This code returned

Art
David Jon
Greenhorn

Joined: Feb 16, 2001
Posts: 17
YOU ARE THE MAN
 
 
subject: dates