Date filtration

How can I get all customers that were created since a certain date? The filtration documentation only shows how to filter strings.

The solution that worked for me:

config/routes.yaml:

sylius_admin_api_customer_index:
  path: /api/v{version}/customers/
  methods: [GET]
  defaults:
    _controller: sylius.controller.customer:indexAction
    _sylius:
      serialization_version: $version
      serialization_groups: [Default]
      paginate: $limit
      sortable: true
      sorting:
        id: desc
      grid: app_admin_api_customer

config/packages/sylius_resource.yaml:

sylius_resource:
  resources:
    app.customer:
      driver: doctrine/orm
      classes:
        model: App\Entity\Customer\Customer

config/packages/sylius_grid.yaml:

sylius_grid:
  grids:
    app_admin_api_customer:
      driver:
        name: doctrine/orm
        options:
          class: "%sylius.model.customer.class%"
      filters:
        createdAt:
          type: date

To get all customers that were created between 2019-07-21 and 2019-07-23 you type example.com/api/v1/customers/?criteria[createdAt][from][date]=2019-07-21&criteria[createdAt][to][date]=2019-07-22.

Here’s the link to the thread on Slack: https://sylius-devs.slack.com/archives/C3EGDG9LY/p1563888141104000