• Post Reply Bookmark Topic Watch Topic
  • New Topic

Returning item using Date range  RSS feed

 
Sege Stephen
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Help
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!