# Change interval of date histogram to 20hto20h

**URL:** <https://discuss.elastic.co/t/change-interval-of-date-histogram-to-20hto20h/102735>\
**Category:** Kibana\
**Created:** [October 4, 2017, 4:15pm UTC](https://discuss.elastic.co/t/change-interval-of-date-histogram-to-20hto20h/102735 "2017-10-04T16:15:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Charlotte31](https://avatars.discourse-cdn.com/v4/letter/c/2bfe46/32.png) [@Charlotte31](https://discuss.elastic.co/u/Charlotte31)\
**Post date:** [October 4, 2017, 4:15pm UTC](https://discuss.elastic.co/t/change-interval-of-date-histogram-to-20hto20h/102735/1 "2017-10-04T16:15:35Z")

</div>

Hello,

I want to change the interval on my X-axis by an interval of 20h to 20h.

In fact, indeed to have a day that it is 00h00 to 00h00, I want to change this configuration, just for one visualisation (no my entire Kibana).

Have you an idea to how define that?

Thank you in advance for your help,

Regards,  
Charlotte

---

<div class="post-metadata">

**Author:** ![lukas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas/32/6812_2.png) [@lukas](https://discuss.elastic.co/u/lukas)\
**Post date:** [October 4, 2017, 5:53pm UTC](https://discuss.elastic.co/t/change-interval-of-date-histogram-to-20hto20h/102735/2 "2017-10-04T17:53:27Z")

</div>

Are you saying that the intervals for your date histograms are from 20:00 on one day to 20:00 the next, but you want them to be from 00:00 to 00:00?

---

<div class="post-metadata">

**Author:** ![Charlotte31](https://avatars.discourse-cdn.com/v4/letter/c/2bfe46/32.png) [@Charlotte31](https://discuss.elastic.co/u/Charlotte31)\
**Post date:** [October 5, 2017, 7:35am UTC](https://discuss.elastic.co/t/change-interval-of-date-histogram-to-20hto20h/102735/3 "2017-10-05T07:35:22Z")

</div>

The intervals of my date histograms are to 00h00 to 00h00 (Interval : Daily) by default. In fact I want the contrary 🙂

But I want to change the "daily" configuration, by a new day interval, to 19h to 19h exactly.

In fact, a standard day begins to 00h00 and finish to 23h59, and I want to change this time slot and configure that my day begins to 19h00, and finishes to 19h00 the day after.

Standard day :  
1st october day : 00h00 to 23h59

New day configuration :  
1st october day: 1st October 19h00 to 2nd October 18h59.

I hope I was be clear.

Thank you in advance,

Regards,  
Charlotte

---

<div class="post-metadata">

**Author:** ![lukas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas/32/6812_2.png) [@lukas](https://discuss.elastic.co/u/lukas)\
**Post date:** [October 9, 2017, 11:04pm UTC](https://discuss.elastic.co/t/change-interval-of-date-histogram-to-20hto20h/102735/4 "2017-10-09T23:04:03Z")

</div>

There are a couple ways you might be able to accomplish this. The first is to change your time zone setting (see [Advanced Options](https://www.elastic.co/guide/en/kibana/current/advanced-options.html), specifically the "dateFormat:tz" setting) to match what you're trying to accomplish.

The other way to do this is to use a custom interval of "24h" and set the start date to the beginning of one of the intervals (i.e. 19h on a certain day).

Hope this helps, and if not, let me know where you're having troubles.

---

<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:** [November 6, 2017, 11:04pm UTC](https://discuss.elastic.co/t/change-interval-of-date-histogram-to-20hto20h/102735/5 "2017-11-06T23:04:21Z")

</div>

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