How to add days to a date in Java

Posted by terrific on Stack Overflow See other posts from Stack Overflow or by terrific
Published on 2010-03-24T11:59:17Z Indexed on 2010/03/24 12:53 UTC
Read the original article Hit count: 218

Filed under:
|

I want to add days to a date to get a new date in Java. How to achieve it using the Calender class.

Calender dom = new GregorianCalender(d, m y);

is the instance of my date of manufacture and I want to reach to date of expiry adding some 100 days to the current date and store it in doe but unable to do that.

Any help would be appreciable.

© Stack Overflow or respective owner

Related posts about java

Related posts about date