Re: How to inc a date using java.util.calender or java.util.date

Andy Susanto <[email protected]>
Newsgroups gmane.comp.java.sun.servlet
Message-ID <7601.219.83.19.225.1091177891.centrinwebmail@mailjkt3.centrin.net.id>
hai,

yes you right, i want the output like that. Can you tell me, how to do that ?

TIA,

andy


"dileepmohan" wrote:
> Pls make it a little bit more clear..Is it like this
>
> int test = (30-7-2004)-(20-7-2004)= 10
> while (i<10){
> show - 21-7-2004, 22-7-2004,23-7-2004.....
> }
> is it so??
>
> ----- Original Message -----
> From: "Andy Susanto" <[email protected]>
> To: <[email protected]>
> Sent: Friday, July 30, 2004 1:37 PM
> Subject: How to inc a date using java.util.calender or java.util.date
>
>
>> hai,
>>
>> i have a problem like this.
>>
>>
>> i get startdate and enddate, and i must to minus that date to get n day.
>> After date i must add a startdate by 1 to show a date between startdate
>> and enddate.
>>
>> this my partial code
>>
>> int test = calendarTo.get(calendarTo.DAY_OF_YEAR) -
>> calendarFrom.get(calendarFrom.DAY_OF_YEAR);
>> int i = 0;
>> while(i<test){
>>  //i do not know how to implement a code to show a date between
>> startdate
>> and enddate
>> }
>>
>>
>> TIA,
>> andy
>>
>>
> ___________________________________________________________________________
>> 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
>>
>
>
>
> ______________________________________
> Scanned and protected by Email scanner
>

___________________________________________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.