File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes calculate todays date minus last one year in java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "calculate todays date minus last one year in java" Watch "calculate todays date minus last one year in java" New topic
Author

calculate todays date minus last one year in java

Abhishek Shirodkar
Greenhorn

Joined: May 08, 2009
Posts: 26
Hello All

how do i calculate todays date minus last one year in java.


Thanks in advance
James Sabre
Ranch Hand

Joined: Sep 07, 2004
Posts: 781

Abhishek Shirodkar wrote:Hello All

how do i calculate todays date minus last one year in java.


Thanks in advance


Take a look at java.util.GregorianCalendar and the add() method.

P.S. You are allowed to add negative amounts!


Retired horse trader.
 Note: double-underline links may be advertisements automatically added by this site and are probably not endorsed by me.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: calculate todays date minus last one year in java
 
Similar Threads
Date Calculations
how to get to date by from date
How to obtain week of year for any given date
How to insert date values to database using java swings
Substracting days in java