Google Search Date Tip


I recently discovered something I have been using fairly regularly. I am probably late to the party here but I learned Google has a date filter for your searches. As all developers know, you can have 2 days or 20 years of experience and your number of searches per day will stay the same. Due to this I welcome anything to make my daily searches more efficient.

If you use Google as your search engine, append “before:YYYY” or/and “after:YYYY” to filter out unwanted results.

Twitter account, Google SearchLiason explains it best here : “The before: & after: commands return documents before & after a date. You must provide year-month-day dates or only a year. You can combine both. For example:

[avengers endgame before:2019] [avengers endgame after:2019-04-01] [avengers endgame after:2019-03-01 before:2019-03-05]”

Google has had this date filter for a while but it was hidden in the “Tools” menu. Now you can add the before/after terms to your search and achieve the same result.

Many times I have been searching for a JavaScript solution and all the top results are from a decade ago. Although the solutions most likely would still solve my issue, sometimes I would rather have a more recent answer. Adding after:20YY helps filter out these old results.

Hopefully you find this as useful as I do.

Chris Francis
Software Developer, BiteSite