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

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
- 01How do you search Gmail between two dates?
- 02How do you search Gmail for one day, one month, or one year?
- 03What do before: and after: mean in Gmail?
- 04How do you search Gmail by date without typing dates?
- 05Can you search Gmail by date in the Gmail app?
- 06Why is my Gmail date search off by a day or returning nothing?
- 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.
How do you search Gmail between two dates?#
- 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
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
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
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.
Check the boundary once on your own mailbox
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.
| Operator | Format | Example | Returns |
|---|---|---|---|
| after: | YYYY/MM/DD | after:2026/01/01 | Mail from that date onward |
| before: | YYYY/MM/DD | before:2026/02/01 | Mail earlier than that date |
| newer_than: | number + d, m or y | newer_than:30d | Mail from the last 30 days |
| older_than: | number + d, m or y | older_than:1y | Mail 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.

| Symptom | Likely cause | Fix |
|---|---|---|
| A message from the first or last day is missing | Boundary or time zone: before: stops at the start of its date, and midnight messages can fall on the next day | Move the after: date back a day or the before: date forward a day, then ignore the extra day in the results |
| Search returns nothing | Date written in a form Google does not show, or a space between the operator and the date | Write it as after:2026/01/01 with slashes and no space |
| A message you know exists does not appear | It is in Spam or Trash, which normal searches skip | Add in:anywhere, for example in:anywhere after:2026/01/01 before:2026/02/01 |
| Very old mail does not appear | The search is fine; the mail may never have synced or was deleted | See [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
See it in AI Emaily
Keep reading
Sources

Written by
Nafiul HasanNafiul 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.