*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 60767
    
  65

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]
 
 
subject: date addition
 
Similar Threads
this is my query running succesfully in database but in my java program rs.next() is false
Tommorows date
WCD 1.4 Beta Results
Date format in Sun voucher.
Simple Date conversion problem