To get the value which is valid for the given date , i need to get the list by passing the code & iterate the list to get the best matched value.

Example , if I want the Coffee Powder Information which is valid on 1 Feb. I need to get pass the code ( CODE 1 ) which will returns the list of objects. After we need to iterate the list to get the best match.

Instead of iteration , is there any way to maintain the hashtable & get the results quicker..?