How to add X number of days to the current date using Calendar object
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Forum_ans
Posted On:   Monday, July 2, 2001 03:22 AM


I have to add 4 days to the current System's date using Calendar object. Please let me know how to do that.





Calendar today = Calendar.getInstance();

today.add( ? , 4);


Could anyone tell me how to do that ?



Thank you


Re: How to add X number of days to the current date using Calendar object

Posted By:   Martin_Winter  
Posted On:   Monday, July 2, 2001 11:52 PM

Hi,

of course, you ask in the wrong Forum. A Calendar has nothing to do with CORBA. But anyway: Isn't the answer given in the class documentation?

today.add(Calendar.DAY_OF_MONTH, 4)
About | Sitemap | Contact