# UpdatedAt Criterion

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

UpdatedAt Search Criterion

The `UpdatedAt` Search Criterion searches for products based on the date when they were last updated.

## Arguments

- `date` - indicating the date that should be matched, provided as a string acceptable by [`DateTimeInterface`](https://www.php.net/manual/en/class.datetimeinterface.php)
- `operator` - Operator value

## Operators

| Value | Description                                                  |
| ----- | ------------------------------------------------------------ |
| `=`   | Matches products updated exactly on the given date (default) |
| `>`   | Matches products updated after the given date                |
| `>=`  | Matches products updated on or after the given date          |
| `<`   | Matches products updated before the given date               |
| `<=`  | Matches products updated on or before the given date         |

## Example

You can use this Search Criterion over the REST API, in the payload of the [`POST /product/catalog/products/view`](https://doc.ibexa.co/en/saas/api/rest_api/rest_api_reference/rest_api_reference.html#tag/Product/operation/ibexa.product_catalog.rest.products.view) request:

**XML**

```xml
<ProductQuery>
    <Filter>
        <UpdatedAtCriterion>
            <updated_at>2023-06-12</updated_at>
            <operator>>=</operator>
        </UpdatedAtCriterion>
    </Filter>
</ProductQuery>
```

**JSON**

```json
{
  "ProductQuery": {
    "Filter": {
      "UpdatedAtCriterion": {
        "updated_at": "2023-06-12",
        "operator": ">="
      }
    }
  }
}
```
