permaculture playing cards*
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
 
wood burning stoves
 
subject: dates
 
Similar Threads
Retrive Month and Year
BigDecimal to Date Conversion
yesterdays date
Help Needed!!
getting first and last date of past 6 months?