aspose file tools*
The moose likes Beginning Java and the fly likes Getting date of 3 months back from current date. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Getting date of 3 months back from current date." Watch "Getting date of 3 months back from current date." New topic
Author

Getting date of 3 months back from current date.

Saurabh Agrawal
Ranch Hand

Joined: Oct 07, 2003
Posts: 244
Hi,

I want to get the date of 3 months back from the current date. Can anyone tell me how can i do that ?



Thanks in advance,

Saurabh


Success is not doing extraordinary things but doing ordinary things extraordinarily well.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61756
    
  67

Please reserve this forum for questions on advanced Java. This post has been moved to a more appropriate forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
calendarObject.add(appropriateCalendarField, -whateverNumberYouWant);
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
What do you expect for May 31 minus 3 months? What do you get?


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Getting date of 3 months back from current date.