How you can add the 10 days in the current date in jsp?

Showing Answers 1 - 4 of 4 Answers

Bairavarasu Murali Krishna

  • Oct 21st, 2005
 

now() + 10

  Was this answer useful?  Yes

A.balasubramaniam

  • Nov 5th, 2005
 

current date command

  Was this answer useful?  Yes

nizam

  • Feb 14th, 2006
 

Date date = new Date();

Calendar cal = new GregorianCalendar();

date=cal.setTime(Calendar.DAYS+10)

date=cal.getTime(date);

  Was this answer useful?  Yes

Sarada

  • Sep 8th, 2006
 

GregorianCalendar tempDate = new GregorianCalendar();

tempDate.add(Calendar.DATE, 10);

java.util.Date newDate = tempDate.getTime();

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions