# How to convert dates to months format

**URL:** <https://discuss.elastic.co/t/how-to-convert-dates-to-months-format/314252>\
**Category:** Kibana\
**Created:** [September 13, 2022, 7:04am UTC](https://discuss.elastic.co/t/how-to-convert-dates-to-months-format/314252 "2022-09-13T07:04:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ritikapawar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ritikapawar/32/98580_2.png) [@Ritikapawar](https://discuss.elastic.co/u/Ritikapawar)\
**Post date:** [September 13, 2022, 7:04am UTC](https://discuss.elastic.co/t/how-to-convert-dates-to-months-format/314252/1 "2022-09-13T07:04:59Z")

</div>

Hi  
I've data in this format

```auto
"Admission _date" : "2020-01-28",
          "id" : 78

```

when I visualize the data in this format I get results like this  
X axis : admission date  
Y axis : count of records

 ![date](https://us1.discourse-cdn.com/elastic/original/3X/6/0/6032bf6e1f81f00d6d74e7ba4400f70a01b7f07d.png)

I want the months on x axis by adding same data  
like this

 ![WhatsApp Image 2022-09-13 at 12.28.44 PM](https://us1.discourse-cdn.com/elastic/original/3X/f/6/f687f5edadded697c30f521a4ba57fe447b3462b.jpeg)

How I can get results like this?

---

<div class="post-metadata">

**Author:** ![ghudgins](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ghudgins/32/138532_2.png) [@ghudgins](https://discuss.elastic.co/u/ghudgins)\
**Post date:** [September 13, 2022, 4:33pm UTC](https://discuss.elastic.co/t/how-to-convert-dates-to-months-format/314252/2 "2022-09-13T16:33:47Z")

</div>

specify the date histogram "minimum interval" of `months`

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/1/01b45febcb0db06360d37b31cc9f636d71bc3932.png)

---

<div class="post-metadata">

**Author:** ![Ritikapawar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ritikapawar/32/98580_2.png) [@Ritikapawar](https://discuss.elastic.co/u/Ritikapawar)\
**Post date:** [September 14, 2022, 6:07am UTC](https://discuss.elastic.co/t/how-to-convert-dates-to-months-format/314252/3 "2022-09-14T06:07:09Z")

</div>

I did the same  
 ![date1](https://us1.discourse-cdn.com/elastic/original/3X/f/7/f7776d09995e9db02e521134476b69c6a14ca4f4.png)

but here I'm getting a particular date for each month  
but I want the date in the form of month (names)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 12, 2022, 6:07am UTC](https://discuss.elastic.co/t/how-to-convert-dates-to-months-format/314252/4 "2022-10-12T06:07:19Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
