Althought it has nothing to do with servlets, there you are :

java.util.Calendar cal = java.util.Calendar.getInstance();
// now the calendar is set to the current system's date (let's say it's 01/05/1999)
cal.add(java.util.Calendar.DATE,1);
// now the calendar is set to 02/05/1999
java.util.Date a_date = cal.getTime(); // in case you need it

Slavikos


 ##########################################################################
   Filippos Slavik
   Part of the SIAMS's implementation development team. For more
   information, please check http://www.siams.net

   e-mail : [EMAIL PROTECTED]

 ##########################################################################
----- Original Message -----
From: Geetanjali Jain <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, May 01, 1999 12:39 PM
Subject: incrementing a DATE


> Hi all !
>
> I'm working with dates. I need to increment a date day by day. E.g.
> 1998-09-09 to 1998-09-10, and so on.
> DATE object doesn't support any method to meet the purpose.
> Can anyone suggest any way of getting the desired result.
>
> Thanks
> Geetanjali
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to