aspose file tools*
The moose likes Beginning Java and the fly likes date addition Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "date addition" Watch "date addition" New topic
Author

date addition

mari maris
Greenhorn

Joined: Mar 22, 2008
Posts: 7
not able to find code 4 Date(Ex: 31-03-2008 +1 year =31-03-2009)
Could someone please help me out
Freddy Wong
Ranch Hand

Joined: Sep 11, 2006
Posts: 959

Take a look at Calendar class, e.g.
calendar.add(Calendar.YEAR, 1);


SCJP 5.0, SCWCD 1.4, SCBCD 1.3, SCDJWS 1.4
My Blog
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61437
    
  67

Please take the time to choose the correct forum for your posts. This forum is for questions on JSP.

This post has been moved to a more appropriate forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: date addition