wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes Any Alternative for this CODE !!!!!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Any Alternative for this CODE !!!!!!" Watch "Any Alternative for this CODE !!!!!!" New topic
Author

Any Alternative for this CODE !!!!!!

Swapna Agarwal
Ranch Hand

Joined: Jan 30, 2004
Posts: 37
I do know there are some mistakes in my CODE, but treating this as psudo code, could any one give me the correct code?
My input:
startDate:03/24/2004
endDate: 02/29/2004
Expected output Should return only SUNDAY's between these 2 dates)
03/21/04
03/14/04
03/07/04
02/29/04

Here is my (psudo) CODE

These are the compilation errors:
[ edited to preserve formatting using the [code] and [/code] UBB tags -ds ]
[ March 26, 2004: Message edited by: Dirk Schreckmann ]
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
Try this (dt1 is earlier date)
Swapna Agarwal
Ranch Hand

Joined: Jan 30, 2004
Posts: 37
Wow..........Excellent........what a simple logic.That is my exact requirement.
Thank you so much,Thanks to JavaRanch Forums.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Any Alternative for this CODE !!!!!!
 
Similar Threads
How to compare (Hour) with actual new Date() ?
Convert to timestamp yyyy-MM-dd hh:mm:ss a
DATE Problem
Date; Previous date, Calendar; Gregorian
cannot find symbol