---
title: ES|QL RANGE_MIN function
description: 
url: https://www.elastic.co/docs/reference/query-languages/esql/functions-operators/date-time-functions/range_min
products:
  - Elasticsearch
---

# ES|QL RANGE_MIN function
<applies-to>
  - Elastic Cloud Serverless: Preview
  - Elastic Stack: Preview
</applies-to>


## Syntax

![Embedded](https://www.elastic.co/docs/reference/query-languages/esql/images/generated/x-pack-esql/functions/range_min.svg)


## Parameters

<definitions>
  <definition term="range">
    Date range expression. If `null`, the function returns `null`.
  </definition>
</definitions>


## Description

Returns the minimum (start) value of a date_range. For a date_range x, y), it returns x.

## Example

```esql
FROM decades
| WHERE decade == 1900
| EVAL min_bound = RANGE_MIN(date_range)
| KEEP date_range, min_bound
```


| date_range:date_range  | min_bound:date           |
|------------------------|--------------------------|
| 1900-01-01..1910-01-01 | 1900-01-01T00:00:00.000Z |