This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell 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


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
 
GeeCON Prague 2014
 
subject: dates