# Visualization show date format have day of week in Kibana

**URL:** https://discuss.elastic.co/t/visualization-show-date-format-have-day-of-week-in-kibana/257301
**Category:** Kibana
**Created:** [December 2, 2020, 3:41am UTC](https://discuss.elastic.co/t/visualization-show-date-format-have-day-of-week-in-kibana/257301 "2020-12-02T03:41:08Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![thuhaa](https://avatars.discourse-cdn.com/v4/letter/t/ed8c4c/32.png) [@thuhaa](https://discuss.elastic.co/u/thuhaa)
#### Post date: [December 2, 2020, 3:41am UTC](https://discuss.elastic.co/t/visualization-show-date-format-have-day-of-week-in-kibana/257301/1 "2020-12-02T03:41:08Z")

</div>

My index have date time type attribute. I want to create visualize use date histogram aggregation with interval days. It will be show date format like 2020-12-02. But I want to date show format have day of week like 2020-12-02 Wed. Do you have any idea for this situation?  
Thank you!

---

<div class="post-metadata">

### Author: ![matw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matw/32/13913_2.png) [@matw](https://discuss.elastic.co/u/matw)
#### Post date: [December 2, 2020, 9:20am UTC](https://discuss.elastic.co/t/visualization-show-date-format-have-day-of-week-in-kibana/257301/2 "2020-12-02T09:20:56Z")

</div>

Hi

You could create a scripted field like this, this would prepare a custom field (but it's not useable with the date histogram aggregation):

 ![Bildschirmfoto 2020-12-02 um 10.16.19](https://us1.discourse-cdn.com/elastic/original/3X/2/2/22764c14c79f1fea19e0191f89e78e8a0e732aab.png)  
But you could use a terms aggregation for your use case  
 ![Bildschirmfoto 2020-12-02 um 10.17.53](https://us1.discourse-cdn.com/elastic/original/3X/f/9/f94ac5eab18a251f9a93ed881817f7b1f684106b.jpeg)

Best,  
Matthias

---

<div class="post-metadata">

### Author: ![thuhaa](https://avatars.discourse-cdn.com/v4/letter/t/ed8c4c/32.png) [@thuhaa](https://discuss.elastic.co/u/thuhaa)
#### Post date: [December 3, 2020, 2:02am UTC](https://discuss.elastic.co/t/visualization-show-date-format-have-day-of-week-in-kibana/257301/3 "2020-12-03T02:02:38Z")

</div>

Thank you for your reply.  
I have already created visualization same as your idea. But if I use term aggregation and order by asc or dec, the order is wrong. Example: 2020-11-11 -\> 2020-11-20 -\> 2020-11-4 -\> 2020-12-12 -\> 2020-12-20 -\> 2020-12-9. Can you config for this case order by date histogram?

---

<div class="post-metadata">

### Author: ![matw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matw/32/13913_2.png) [@matw](https://discuss.elastic.co/u/matw)
#### Post date: [December 3, 2020, 12:42pm UTC](https://discuss.elastic.co/t/visualization-show-date-format-have-day-of-week-in-kibana/257301/4 "2020-12-03T12:42:37Z")

</div>

Can you post a screen? thx  
Best,  
Matthias

---

<div class="post-metadata">

### Author: ![thuhaa](https://avatars.discourse-cdn.com/v4/letter/t/ed8c4c/32.png) [@thuhaa](https://discuss.elastic.co/u/thuhaa)
#### Post date: [December 4, 2020, 7:22am UTC](https://discuss.elastic.co/t/visualization-show-date-format-have-day-of-week-in-kibana/257301/5 "2020-12-04T07:22:33Z")

</div>

If I do follow this your way, the date with interval is day . How can I show visualization of date axis with interval is week?

---

<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: [January 1, 2021, 7:22am UTC](https://discuss.elastic.co/t/visualization-show-date-format-have-day-of-week-in-kibana/257301/6 "2021-01-01T07:22:40Z")

</div>

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