---
title: "New Google Search Commands: before: and after:"
description: "Google’s before: and after: operators filter results before, after, or between specified dates."
canonical: "https://www.darrenhuang.com/en/google-before-after-search-commands.html"
markdown: "https://www.darrenhuang.com/en/google-before-after-search-commands.md"
locale: "en"
language: "en"
translationKey: "post:google-before-after-search-commands"
type: article
published: "2019-04-09T00:00:00.000Z"
modified: "2023-06-26T00:00:00.000Z"
---

> This Markdown version is generated automatically from the HTML page.
> When citing this content, use the [canonical page](https://www.darrenhuang.com/en/google-before-after-search-commands.html).

Digital Engine article

# New Google Search Commands: before: and after:

Google’s before: and after: operators filter results before, after, or between specified dates.

Darren Huang·April 9, 2019·2-min readUpdated June 26, 2023

Originally published in Chinese on April 9, 2019. This English translation preserves the original context; referenced products, interfaces, and policies may have changed.

Table of contents3 sections

1.  [How to use them](#section-how-to-use-them)
2.  [Date details](#section-date-details)
3.  [Notes](#section-notes)

**Table of contents**

1.  [How to use them](#section-how-to-use-them)
2.  [Date details](#section-date-details)
3.  [Notes](#section-notes)

On April 9, 2019, Google’s [official Twitter account](https://twitter.com/searchliaison/status/1115706765088182272) announced two search commands: ***before:*** and ***after:***. Add a year or an exact date after either operator to filter results.

![Google before and after search commands](/wp-content/uploads/2019/04/google-before-after-search-command.png)

[Original example](https://twitter.com/searchliaison/status/1115707059998052354)

## How to use them

The syntax is simple: add **before:** or **after:** and a year or date to a query. You can use either operator alone or combine both.

韓國瑜 before:2017

![Search results filtered with before 2017](/wp-content/uploads/2019/04/google-before-command-example-1-1024x689.png)

Results for news published before the subject became mayor.

韓國瑜 after:2018

![Search results filtered with after 2018](/wp-content/uploads/2019/04/google-after-command-example-1024x690.png)

Results published after 2018.

韓國瑜 after:2018-11-1 before:2018-11-15

![Search results between two dates](/wp-content/uploads/2019/04/google-before-and-after-command-example-1024x723.png)

Results published between November 1 and November 15, 2018.

These operators work in ordinary Google Search and Google News.

## Date details

-   `before:2018` returns results before 2018-01-01.
-   `after:2018` returns results after 2018-12-31.
-   `before:2019 after:2017` limits results to 2018.
-   Hyphens and slashes are both accepted: `before:2018-12-31` equals `before:2018/12/31`.
-   Months and days may use one or two digits, such as `before:2018-5-17` and `before:2018-05-17`.

## Notes

Google News always displays a publication time, while ordinary Search shows one only when Google considers it useful. Google estimates dates in several ways, but the result is not guaranteed to be exact because pages can be edited and declared dates may differ from actual publication dates.

![Publication timestamp shown in Google Search](/wp-content/uploads/2019/04/google-timestamp.png)

For more detail, see Google’s [official explanation](https://webmasters.googleblog.com/2019/03/help-google-search-know-best-date-for.html).

**Categories**

-   [Uncategorized](/en/categories/uncategorized.html)

**Topics**

-   [Uncategorized](/en/tags/uncategorized.html)

Keep exploring

## Keep reading

[All articles →](/en/articles.html)

### Related articles

April 22, 2019

#### [Web Story⚡ - SEO’s next battleground](/en/amp-story-dedicated-section-google-serp.html)

[Read article →](/en/amp-story-dedicated-section-google-serp.html)

May 11, 2019

#### [Google I/O 2019 - SEO related compilation](/en/google-io-2019-seo-news-information.html)

[Read article →](/en/google-io-2019-seo-news-information.html)

March 28, 2017

#### [How to Find 404 Pages on a Website with Screaming Frog](/en/identify-broken-links-with-screaming-frog.html)

[Read article →](/en/identify-broken-links-with-screaming-frog.html)

×

Open full-size image ↗
