This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Java in General and the fly likes java.util.Date: How to pick Date one week ago? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "java.util.Date: How to pick Date one week ago?" Watch "java.util.Date: How to pick Date one week ago?" New topic
Author

java.util.Date: How to pick Date one week ago?

Imre Tokai
Ranch Hand

Joined: Jun 04, 2008
Posts: 123
Hello!


Here is my code:


How can I pick a date which was 7 days ago?


Regards
VarunKumar Mallisetty
Ranch Hand

Joined: Jun 18, 2006
Posts: 31
Use java.util.Calender's getInstance and add methods. Have a look at its documentation.


SCJP 6.0
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: java.util.Date: How to pick Date one week ago?
 
Similar Threads
Convert the String to date format
xsd datetime format
How to get past date ?
Calendar object
Need to change Calendar to dd/mm/yyyy format