File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

date addition

mari maris

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

Joined: Jan 10, 2002
Posts: 63858

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] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: date addition
It's not a secret anymore!