How to Search for Files from a Certain Date Range in Windows Vista and 7

I was browsing our forum earlier today when I noticed a question from a reader asking how to select a date range when searching for files in advanced search. This is something that was extremely easy in XP, but seems to be much less intuitive in Vista.

I figured he can’t be the only person confused by this, so I’m writing it up here for everybody. Hopefully this will help somebody!

How to Search a Date Range with the Keyboard

If you are a keyboard junkie, you can easily select a date range by using the following syntax in the search box in any folder:

modified:2/1/2008 .. 2/20/2008

The key is the two periods between the dates, which tells the search engine to use it as a range. You could use “Datecreated” instead of “modified”, or just “date” if you wanted to.

image

If you want to change the search to also use keywords as well, you can use the name: parameter like this:

name:xls modified:2/1/2008..2/20/2008

It’s quite powerful once you get used to it.

How to Select a Date Range with the Mouse

If you aren’t a keyboard junkie you probably don’t want to remember the exact syntax you need to type in, but don’t fear – we’ve got another way to do it. Just open up Advanced search by hitting the F3 key with an Explorer window open.

In Vista, pressing F3 will produce a window like this:

image

Change the Date drop-down to “Date Modified” and then “is”. Clicking on the date range box will bring up a calendar.

image

In Windows 7, pressing F3 will bring up a small dropdown near the search bar.

screenshot.11

Click “Date Modified” to bring up the calendar.

screenshot.10

Once you have the calendar box open, you can just click the first date and drag the mouse to select more dates.

You can even click on the month to select the whole month, or even select multiple months. The key thing is that once you’ve got the selection how you want it, you need to click somewhere else… it’s slightly tricky until you get used to it.

Of course you’ll have the best luck if you also put in a filename into the Name box, and select the right folder location to search in.

Lowell Heddings, better known online as the How-To Geek, spends all his free time bringing you fresh geekery on a daily basis. You can follow him on if you'd like.