# CreatedAtRange Criterion

> For the complete documentation index, see [llms.txt](https://doc.ibexa.co/en/saas/llms.txt).

CreatedAtRange Search Criterion

The `CreatedAtRange` Search Criterion searches for products based on the date range when they were created.

## Arguments

- `min` - indicating the beginning of the date range, provided as a `DateTimeInterface` object
- `max` - indicating the end of the date range, provided as a `DateTimeInterface` object

## Example

**XML**

```xml
<ProductQuery>
    <Filter>
        <CreatedAtRange>
            <min>2023-06-12</min>
            <max>2023-06-20</max>
        </CreatedAtRange>
    </Filter>
</ProductQuery>
```

**JSON**

```json
{
    "ProductQuery": {
        "Filter": {
            "CreatedAtRange": {
                "min": "2023-06-12",
                "max": "2023-06-20"
            }
        }
    }
}
```
