How to Add days in a date ?

I have a component calendar1 in the page.

When selecting any date, to add 5 days and to put the date in the calendar2

How to do?

Thank you

Do I speak about the south of Brazil, and you?

SimpleDateFormat dataformatada =new SimpleDateFormat("dd/MM/yyyy");

Date minhaDate = ? calendar2

minhaDate.setDate(new Date().getDate() + 5);

String grava_data = dataformatada.format(minhaDate);

calendar2.setText(grava_data);

[568 byte] By [jg1234a] at [2007-11-27 4:08:01]
# 1
java.util.Calendar cal = java.util.Calendar.getInstance();cal.setTime((Date)calendar1.getValue());cal.add(java.util.Calendar.DATE,5);calendar2.setValue(cal.getTime());
jsra at 2007-7-12 9:13:20 > top of Java-index,Development Tools,Java Tools...
# 2
Very Good!!!, Resolved I speak from Brazil and you?Youhave Skype ?The my is marcioferminoThanks
jg1234a at 2007-7-12 9:13:20 > top of Java-index,Development Tools,Java Tools...