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.
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?