Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

dates

 
David Jon
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 241
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, David, let us know if this fills the bill?

This code returned

Art
 
David Jon
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
YOU ARE THE MAN
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic