﻿---
title: ES|QL MONTH_NAME function
description: 
url: https://www.elastic.co/elastic/docs-builder/docs/2862/reference/query-languages/esql/functions-operators/date-time-functions/month_name
products:
  - Elasticsearch
---

# ES|QL MONTH_NAME function
<applies-to>
  - Elastic Stack: Generally available since 9.2
</applies-to>


## Syntax

![Embedded](https://www.elastic.co/elastic/docs-builder/docs/2862/reference/query-languages/esql/images/functions/month_name.svg)


## Parameters

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


## Description

Returns the month name for the provided date based on the configured Locale.

## Supported types


| date       | result  |
|------------|---------|
| date       | keyword |
| date_nanos | keyword |


## Example

```esql
ROW dt = to_datetime("1996-03-21T00:00:00.000Z")
| EVAL monthName = MONTH_NAME(dt);
```