aspose file tools*
The moose likes Beginning Java and the fly likes Adding date Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Adding date" Watch "Adding date" New topic
Author

Adding date

Manoj Paul
Ranch Hand

Joined: Jan 18, 2007
Posts: 110
Hello friend..

What should i do to add 18 years to a birthdate (1988-04-24) and find out the date:
i.e, (1988-04-24)+18 years = output date (yyyy-mm-dd)

Pliz help.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60071
    
  65

Manoj Paul, please take the time to choose the correct forum for your posts. This forum is for questions on XYZ.

Also, "Pliz" is not a word. Please use real words such as "Please" when posting to the forums. Please read this for more information.

This post has been moved to a more appropriate forum.
[ May 08, 2007: Message edited by: Bear Bibeault ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Joanne Neal
Rancher

Joined: Aug 05, 2005
Posts: 3169
    
  10
The Calendar class should do what you need.


Joanne
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Adding date
 
Similar Threads
Passed SCWCD with 95%
Adding date
how to validate a date?
Help with select statements
Code review required for converting dateformat