A newer version of this documentation is available.

View Latest

Date Range Query

    March 23, 2025
    + 12

    A date_range query finds documents containing a date value, in the specified field within the specified range.

    Dates should be in the format specified by RFC-3339, which is a specific profile of ISO-8601.

    Define the endpoints using the fields start and end. You can omit any one endpoint, but not both.

    The inclusive_start and inclusive_end properties in the query JSON control whether or not the endpoints are included or excluded.

    Example

    json
    { "start": "2001-10-09T10:20:30-08:00", "end": "2016-10-31", "inclusive_start": false, "inclusive_end": false, "field": "review_date" }