> For the complete documentation index, see [llms.txt](https://documentation.ajaxsearchpro.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.ajaxsearchpro.com/advanced-options/excluding-and-including-results/exclude-or-include-by-date.md).

# 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)
