aspose 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
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: calculate todays date minus last one year in java
 
Similar Threads
How to obtain week of year for any given date
how to get to date by from date
How to insert date values to database using java swings
Date Calculations
Substracting days in java