# Exclude or Include by date

`Advanced Options -> Exlude results` panel

![](http://i.imgur.com/tf598XM.png)

1. Go to the `Advanced Options -> Exclude results` panel. The very first option is date exclusion.
2. Enable the option and choose the mode first: Exclude or Include
3. Then you can optionally choose a **from** and **to** date (one of them is needed)
4. Save the options, done.

## What is Relative date in the options?

It was made for cases when it's not possible to use the exact date - for example you want *to exclude the posts, which are over 1 year old*, then using a relative date is very useful:

![](http://i.imgur.com/u8HZjfr.png)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.ajaxsearchpro.com/advanced-options/excluding-and-including-results/exclude-or-include-by-date.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
