This week's giveaways are in the MongoDB and Jobs Discussion forums.
We're giving away four copies of Mongo DB Applied Patterns and 4 resume reviews from Five Year Itch and have the authors/reps on-line!
See this thread and this one for details.
The moose likes Beginning Java and the fly likes Returning item using  Date range Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Returning item using  Date range" Watch "Returning item using  Date range" New topic
Author

Returning item using Date range

Sege Stephen
Ranch Hand

Joined: Oct 06, 2007
Posts: 51
I have a program that return a list of items. every item retuned includes the date the item was published. I want to return a subset of the Items based on a fromDate and toDate. I don't know how to do that........ here is my code snippet

In my method i have the todate and from date defined:


I know I have to use the after and before Date methods of from the DATE API, but I don't know how to do it. Date itemDate is what the item date returns, and if it returns 20 items from nov 1 - 20, 1 item per day, I want return something from nov 11 - nov 19, how do i do that?
Sege Stephen
Ranch Hand

Joined: Oct 06, 2007
Posts: 51
Help
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Returning item using Date range
 
Similar Threads
ActionForm with indexed properties
Stateful Session Bean - Conversational State
List of Items
Locked door help
Need help in generating a second vector list from the frist vector which...