Gmail date search

Gmail Search by Date

Create a Gmail search for an exact date range or relative age, then combine it with sender, subject, status, and attachment filters.

Interactive Gmail search builder

Build a Gmail date-range search

Choose an exact range or a moving age filter, then add sender, subject, status, or attachment details.

Private · runs in your browser
Start with a recipe:
Current queryYour query will appear here
People and subject
Words to include or exclude
Date and age
Mailbox location and status
Attachments and size
Results update as you type.
Direct answer

How to search Gmail by date range

Use Gmail search by date when a message is tied to a known day, month, or rolling age. For a fixed range, combine after:YYYY/MM/DD with before:YYYY/MM/DD; the builder keeps the boundaries visible so you can check the result before opening Gmail.

For a single day, use the previous day as the after: boundary and the next day as the before: boundary. If you mean a moving window, use newer_than:7d or older_than:1y instead of rewriting calendar dates.

Step by step

Create an exact Gmail date range

1

Choose a time filter

Select Between two dates for fixed boundaries, or Older than/Newer than for a rolling period that stays useful over time.

2

Set the boundaries

Enter an After and Before date, or a positive amount with days, months, or years. The builder validates the order.

3

Add context

Use sender, subject, attachment, location, or status filters when the date range still returns too many messages.

Working examples

Gmail search by date examples

These queries show fixed ranges and relative ages. Replace the dates and addresses with your own values.

Before and after dates in Gmail

Gmail date operators use year, month, and day. An exact month is easiest to express as an inclusive start and an exclusive next-month boundary. For a single day, search after the previous day and before the following day, then review local time behavior.

Date interpretation can be affected by time zone and message timestamps. If a message close to midnight is missing, widen the window by one day and then narrow it with another condition.

Combine date with sender, files, and status

Date alone can still return thousands of messages. Add from: for a sender, subject: for a topic, filename:pdf for a file type, or is:unread for outstanding mail. Gmail treats the separate terms as conditions that must all match.

Avoid adding several uncertain filters at once. Begin with the date window, confirm it returns plausible results, and then add one constraint at a time.

Gmail search date range and single-day boundaries

A Gmail search date range is easiest to reproduce when the start and end are explicit. Use after: for the lower boundary and before: for the next boundary; before: is exclusive, so before:2026/02/01 keeps January as the working range.

Search in Gmail by date first, then add one reliable clue such as from:, subject:, filename:, or is:unread. Sorting messages by date is a different task and is not the purpose of this query builder.

How to search email by date in Gmail without over-filtering

Start with the date condition that you know is correct. If the result is too broad, add a sender, attachment, or status filter one at a time. If the result is empty, remove the least certain condition before changing the whole date range.

The tool creates query text locally in your browser. Gmail returns the messages, while InboxQuery does not read, modify, or delete your mailbox.

Inputs and output

What this Gmail search tool supports

Search inputs

Use sender and recipient addresses, subject text, included words, an exact phrase, and comma-separated exclusions. Blank fields remain outside the query, so you can work with incomplete information.

Mailbox filters

Combine a fixed date range or rolling message age with read status, mailbox location, Gmail category, attachment presence, filename, and complete-message size limits.

Readable output

The result is standard query text for Gmail’s search box. InboxQuery also describes each fragment, flags conflicting boundaries, offers one-click copying, and creates a direct Gmail search link.

Reliable workflow

How to refine a Gmail search without losing the target

Begin with the condition you know is true. That may be a sender address, a broad date window, an attachment type, or a mailbox location. Run that simple query first. When the result contains the target but is too large, add one more condition. This incremental method is easier to debug than starting with a long query made from several uncertain memories.

If a query returns nothing, remove the condition you trust least. Display names can hide a different sender address, subject wording may not be exact, categories can be assigned unexpectedly, and date boundaries can exclude messages near midnight. Switching to in:anywhere is useful when Spam or Trash may contain the message, but it does not search another account or restore permanently deleted mail.

The builder handles empty, valid, and invalid states without contacting Gmail. A blank form shows a clear empty result. A valid combination enables copy and search actions. Reversed date boundaries, non-positive age values, and an impossible size band display an error and disable the actions until the input is corrected. Gmail—not InboxQuery—decides which existing messages match the finished query.

Copying the query is useful when you want to inspect or edit it in Gmail before searching. The direct link is faster when the generated text already matches your intent. Both actions use the same visible query, and neither grants InboxQuery permission to your account. Rolling age filters change over time, while fixed dates continue to describe the same period.

Limits and troubleshooting

Gmail date-search limits

Practical note

Choose Gmail date boundaries before acting

Use fixed after: and before: dates when the same historical period must be reproducible. Use newer_than: for a moving review queue. Open representative results and confirm the account, sender, date, and thread before any bulk Gmail action.

Related tools

Continue refining your Gmail search

FAQ

Gmail search by date FAQ

How do I search Gmail by date range?

Use after:YYYY/MM/DD with before:YYYY/MM/DD, such as after:2026/01/01 before:2026/02/01. The second date is the exclusive upper boundary.

How do I search Gmail for one specific day?

Use the day before as the after: date and the day after as the before: date, then review the results for time-zone edge cases.

How do I search Gmail by date and sender?

Combine a date operator with from:, for example from:[email protected] after:2026/01/01 before:2026/02/01.

Does Gmail search by date sort messages?

No. Date operators filter the results; they do not create a separate sort-by-date view.

Should I use older_than or before in Gmail?

Use older_than for a moving age such as older_than:1y. Use before: when you need the same historical cutoff every time.

Operator syntax is based on Google’s official Gmail search documentation. InboxQuery is independent and does not access your account.

Query copied to clipboard