Hi all,
I want to get the date of 5 days later. According to Sun Java document, the
following code should work. But still the result is today.
Am I missing anything?
Calendar myCal = Calendar.getInstance();
myCal.add(myCal.DATE, 5);
System.out.println ( myCal.DATE );
Thank you.
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com