limit number of sub-dirs searched for files

using: find . -type f -print|xargs -li "string", how do I limit the dated directories (2010-7-14, 2010-7-13,etc.) to just 2009 & 2010 years of directories to search. We go back to 2004 in our archives, way too many files.

Where exactly is the date information? Is it part of the filenam, or it's just the last modification time?

The date is the actual directory for each date of the year.

Something like this?

find -type d -name '200[4-7]*' -prune -o -print