# Search\_before\_date and Search\_after\_date filters not working

**URL:** <https://community.perplexity.ai/t/search-before-date-and-search-after-date-filters-not-working/3097>\
**Category:** Bug Reports\
**Tags:** search\
**Created:** [December 15, 2025, 9:49am UTC](https://community.perplexity.ai/t/search-before-date-and-search-after-date-filters-not-working/3097 "2025-12-15T09:49:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paolo\_Ursino](https://sea1.discourse-cdn.com/flex001/user_avatar/community.perplexity.ai/paolo_ursino/32/308_2.png) [@Paolo\_Ursino](https://community.perplexity.ai/u/Paolo_Ursino)\
**Post date:** [December 15, 2025, 9:49am UTC](https://community.perplexity.ai/t/search-before-date-and-search-after-date-filters-not-working/3097/1 "2025-12-15T09:49:35Z")

</div>

## 🐛 Describe the Bug

First: it is unclear if the date format should be ‘mm-dd-yyyy’, as described in the reference API, or ‘mm/dd/yyyy’. On one occasion, using ‘mm=dd-yyyy’ gave a format error only when I used one of them (either search\_before or search\_after), whereas if I set both (time interval), there was no error.

Second: whatever you do, the filter by date seems to be ignored, and I tried with search\_mode set to ‘academic’ or ‘web’.

Using last\_updated\_before/after didn’t help, these seem to be ignored as well.

## ✅ Expected Behavior

I expect the response.search\_results to have results in the desired date range.

## ❌ Actual Behavior

The search\_before/after and/or last\_updated\_before/after have no effect on the search results

## 🔄 Steps to Reproduce

1. response = client.chat.completions.create(

2. Check response.search\_results

## 📌 API Request & Response (if applicable)

## 🌍 Environment

- **API Version:** [e.g., sonar-3.1]
- **SDK (if applicable):** [e.g., Python SDK v0.5]
- **Operating System:** [e.g., MacOS, Linux, Windows]

## 📎 Logs or Screenshots (if applicable)

Add any logs or screenshots that can help debug the issue.

## 📝 Additional Context

Add any other context about the problem here.
