Blog/ Gmail how-tos

How to Search Gmail by Date: Range, Before and After

Nafiul HasanNafiul Hasan· 6 min read
How to search Gmail by date range using the before:, after:, older_than: and newer_than: operators

The short answer

To search Gmail by date, type after: and before: with dates written YYYY/MM/DD into the search box, for example after:2026/01/01 before:2026/02/01 for January 2026. after: starts at the date you name and before: stops at the start of its date. For a rolling window, use newer_than:30d or older_than:1y.

Search Gmail by date or between two dates with after: and before: (YYYY/MM/DD), or older_than:/newer_than:. Copy-paste examples for a day, month or year.

On this page
  1. 01How do you search Gmail between two dates?
  2. 02How do you search Gmail for one day, one month, or one year?
  3. 03What do before: and after: mean in Gmail?
  4. 04How do you search Gmail by date without typing dates?
  5. 05Can you search Gmail by date in the Gmail app?
  6. 06Why is my Gmail date search off by a day or returning nothing?
  7. 07Searching dates across several inboxes

Gmail has no date picker you have to hunt for: you search by date by typing operators into the search box. Put the earliest date after after: and the first date you do not want after before:, both as YYYY/MM/DD, and Gmail returns only mail between them. Copy the line below and change the dates.

Search Gmail between two dates (January 2026)
Search boxafter:2026/01/01 before:2026/02/01
ReturnsMail dated 1 January through 31 January 2026
Rolling windownewer_than:30d

How do you search Gmail between two dates?#

  1. 1

    Click the Gmail search box

    Click the search bar at the top of Gmail on the web, or tap the search icon in the Gmail app for Android or iPhone and iPad. Google’s help article lists the same date operators for all three.

  2. 2

    Type after: and the first day of the window

    Write the date as year, month, day with slashes, for example after:2026/01/01. Type the operator and the date together with no space between them. Google’s own examples use slashes, so stick to them.

  3. 3

    Add before: and the first day after the window

    Leave a space and add before:2026/02/01. Gmail treats the two clauses as a pair, so only mail inside the window is listed. before: stops at the start of the date you give it, which is why February 1 closes a January search.

  4. 4

    Check the edges, then narrow with other operators

    Open the newest and oldest result and confirm they sit on the dates you expect. Then add any operator to the same line: from:[email protected] after:2026/01/01 before:2026/02/01 has:attachment lists attachments from one sender in that month.

How do you search Gmail for one day, one month, or one year?#

Every fixed window uses the same pattern: after: the first day you want, before: the first day you do not. Only the two dates change.

Copy-paste searches
One day (14 March 2026)after:2026/03/14 before:2026/03/15
One month (March 2026)after:2026/03/01 before:2026/04/01
One year (2025)after:2025/01/01 before:2026/01/01
Everything before a datebefore:2024/01/01
Everything since a dateafter:2026/06/01

Check the boundary once on your own mailbox

Google’s help page gives the operators and examples but does not spell out whether the named day itself is included. Guides and testing commonly report that after: includes the day you name and before: does not. If a message you expect on the first or last day is missing, shift that date by one day and run it again.

What do before: and after: mean in Gmail?#

  • after:YYYY/MM/DD lists mail received from that date onward. Example: after:2026/01/01.
  • before:YYYY/MM/DD lists mail received earlier than that date. Example: before:2026/01/01 does not return anything dated 1 January.
  • Format: Google’s help page shows year/month/day and also month/day/year with slashes. Year first is the clearer choice, and dashes are not shown in any of Google’s examples.
  • Combined: put both on one line separated by a space to get a window. Add from:, subject: or has:attachment to narrow it further.

How do you search Gmail by date without typing dates?#

Relative operators take a number and a unit instead of a calendar date: d for days, m for months, y for years. newer_than:30d is the last 30 days. older_than:1y is anything more than a year old. Combine them for a slice: older_than:6m newer_than:1y returns mail between six months and a year ago. Because the window moves with today’s date, they suit searches you rerun, such as cleanup. See the walkthrough in bulk-deleting old emails in Gmail.

If you would rather not type operators at all, the web version of Gmail has a search options panel behind the control at the right end of the search box, and in recent versions it includes a Date within field with a start date you pick. The wording and layout of that panel can differ between Gmail versions. For every other operator, see all Gmail search operators.

OperatorFormatExampleReturns
after:YYYY/MM/DDafter:2026/01/01Mail from that date onward
before:YYYY/MM/DDbefore:2026/02/01Mail earlier than that date
newer_than:number + d, m or ynewer_than:30dMail from the last 30 days
older_than:number + d, m or yolder_than:1yMail more than a year old

Can you search Gmail by date in the Gmail app?#

Yes. Google’s search-operator help article is published for Android and for iPhone and iPad as well as for computers, and the date operators in it are the same: after:, before:, older_than: and newer_than:. Tap the search icon, type the same line you would type on the web, and run it. Filters are a different matter: Google describes managing filters in Gmail on a computer, so build any standing rule there.

Why is my Gmail date search off by a day or returning nothing?#

Almost every wrong result comes from one of the causes below. The time-zone one is the hardest to see: Google does not say which time zone Gmail uses for date boundaries, and sources disagree between your account’s zone and UTC, so a message sent close to midnight can land on the neighbouring date.

Diagram of a date window drawn as a block of time with its two edge dates, showing why the start and end dates of a Gmail search are the edge cases to check
The two edge dates are where date searches go wrong. Check the oldest and newest result.
SymptomLikely causeFix
A message from the first or last day is missingBoundary or time zone: before: stops at the start of its date, and midnight messages can fall on the next dayMove the after: date back a day or the before: date forward a day, then ignore the extra day in the results
Search returns nothingDate written in a form Google does not show, or a space between the operator and the dateWrite it as after:2026/01/01 with slashes and no space
A message you know exists does not appearIt is in Spam or Trash, which normal searches skipAdd in:anywhere, for example in:anywhere after:2026/01/01 before:2026/02/01
Very old mail does not appearThe search is fine; the mail may never have synced or was deletedSee [Gmail search not finding old emails](/blog/gmail-search-not-finding-old-emails)

Searching dates across several inboxes#

Date operators work inside one Gmail account. If your mail is split across Gmail, Outlook and other providers, AI Emaily is an AI-native email client that connects them in one inbox and lets you search in plain language, for example the invoice from my accountant around last October, without working out the date edges. We build it. A 7-day free trial is included; plans are on the pricing page.

Frequently asked

Nafiul Hasan

Written by

Nafiul Hasan

Nafiul Hasan is an entrepreneur and AI automation system builder with 10+ years of experience turning messy, manual workflows into reliable automated systems. He designs and ships AI enterprise solutions end-to-end — the agent logic, the data plumbing, and the product people actually use — and founded AI Emaily to give busy professionals their attention back. He writes here from the builder's seat: what works, what breaks, and how to put AI to work without giving up control.

EntrepreneurAI Automation System BuilderAI EnthusiastBuilds AI Enterprise Solutions10+ years experience
More from Nafiul
Ready when you are

Search your mail by what you remember, not the date format

AI Emaily searches Gmail, Outlook and every account you connect in plain language. Describe the email and skip the date arithmetic. 7-day free trial.

  • 7-day free trial
  • Cancel anytime
  • Every provider