aspose file tools
The moose likes Java in General and the fly likes To find date in while loop Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "To find date in while loop" Watch "To find date in while loop" New topic
Author

To find date in while loop

Rajeev Ja
Ranch Hand

Joined: May 06, 2007
Posts: 38
Hi,
I have the code below
while(){
Date d1=sdf.parse(actualStartDate);
Date d2=sdf.parse(actualFinishDate);
}
I will get many start and end dates in successive iterations
for eg in first iteration i get actualFinishDate as 4 and in second iteration as 3 i want to print 4 which was overwritten by 3 can any one
tell me code how to print 4 by comparing 4 and 3 in dates
Manuel Leiria
Ranch Hand

Joined: Jul 13, 2007
Posts: 171
I don't understand your question. Can you please elaborate?


Manuel Leiria<br /> <br />--------------<br />Peace cannot be kept by force; it can only be achieved by understanding. <br /> Albert Einstein
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: To find date in while loop
 
Similar Threads
ONE MORE TIME! Date from String, etc..
Help on date and Calendar Object
Date comparision
Calculating no. of working days between tow dates
Displaying the Date - Issue