# Calendar in time filter from Monday to Sunday instead of Sunday to Saturday

**URL:** <https://discuss.elastic.co/t/calendar-in-time-filter-from-monday-to-sunday-instead-of-sunday-to-saturday/55043>\
**Category:** Kibana\
**Created:** [July 8, 2016, 11:32am UTC](https://discuss.elastic.co/t/calendar-in-time-filter-from-monday-to-sunday-instead-of-sunday-to-saturday/55043 "2016-07-08T11:32:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sasauz](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@sasauz](https://discuss.elastic.co/u/sasauz)\
**Post date:** [July 8, 2016, 11:32am UTC](https://discuss.elastic.co/t/calendar-in-time-filter-from-monday-to-sunday-instead-of-sunday-to-saturday/55043/1 "2016-07-08T11:32:19Z")

</div>

Is it possible to change the calendar format in absolute time filter, so that it will be show weeks from Monday to Sunday instead of Sunday to Saturday? ![](https://us1.discourse-cdn.com/elastic/original/2X/d/d7ece9d2126609e052d6a442ff69a74e20037fd2.png)

---

<div class="post-metadata">

**Author:** ![tsullivan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsullivan/32/31077_2.png) [@tsullivan](https://discuss.elastic.co/u/tsullivan)\
**Post date:** [July 8, 2016, 9:25pm UTC](https://discuss.elastic.co/t/calendar-in-time-filter-from-monday-to-sunday-instead-of-sunday-to-saturday/55043/2 "2016-07-08T21:25:41Z")

</div>

I don't believe there is any config setting for this, so the only way is probably to modify the Javascript source code.

It looks like the setting is controlled the `startingDay` field in this object:  
[https://github.com/elastic/kibana/blob/master/src/ui/public/angular-bootstrap/datepicker/datepicker.js#L14](https://github.com/elastic/kibana/blob/master/src/ui/public/angular-bootstrap/datepicker/datepicker.js#L14)

Depending on your version of Kibana, that file might be somewhere else in the repo.

If you change that 0 to a 1, then the date picker calendars will show Monday as the first day of the week. I have tested it and took this screenshot:

 ![](https://us1.discourse-cdn.com/elastic/original/2X/6/6cf290343b28cb9a373c344a69f3cc27154a2aad.png)

---

<div class="post-metadata">

**Author:** ![sasauz](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@sasauz](https://discuss.elastic.co/u/sasauz)\
**Post date:** [July 12, 2016, 4:41pm UTC](https://discuss.elastic.co/t/calendar-in-time-filter-from-monday-to-sunday-instead-of-sunday-to-saturday/55043/3 "2016-07-12T16:41:39Z")

</div>

Thank you Tim for your answer. I'm using Kibana 4.4 and on another server 4.5.2. You are right that in older versions it is somewhere else. I have try to find this variable but I didn't find it. ☹ I think the variable in old versions (4.X) is not startingDay. Do you know where to find it in Kibana 4.4 or 4.5.2?

---

<div class="post-metadata">

**Author:** ![tsullivan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsullivan/32/31077_2.png) [@tsullivan](https://discuss.elastic.co/u/tsullivan)\
**Post date:** [July 13, 2016, 4:22am UTC](https://discuss.elastic.co/t/calendar-in-time-filter-from-monday-to-sunday-instead-of-sunday-to-saturday/55043/4 "2016-07-13T04:22:52Z")

</div>

In Kibana 4.x it's a little different.x because the datepicker module is external, not in the Kibana source.

The `startingDay` option is in `./node_modules/@spalger/angular-bootstrap/ui-bootstrap-tpls.js` line 1004. That looks to be the same for Kibana 4.4.x and Kibana 4.5.x.

After editing that line, you'll need to stop Kibana, run `rm -rf optimize` in the Kibana home directory, and then restart Kibana.

I think this idea would make a good feature request for Kibana 5.x. We could probably add this as an Advanced Settings option. Would you mind creating that in our issues page: [https://github.com/elastic/kibana/issues](https://github.com/elastic/kibana/issues)? if you do, please add the `enhancement` label.

---

<div class="post-metadata">

**Author:** ![sasauz](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@sasauz](https://discuss.elastic.co/u/sasauz)\
**Post date:** [July 13, 2016, 7:32am UTC](https://discuss.elastic.co/t/calendar-in-time-filter-from-monday-to-sunday-instead-of-sunday-to-saturday/55043/5 "2016-07-13T07:32:03Z")

</div>

Thank you very much!

It works! I have had only one problem after I delete the optimize directory and have try to start the kibana, there was an error:

 ![](https://us1.discourse-cdn.com/elastic/original/2X/b/bde52b161e98df4bd33699bcf123acf381859483.png)  
I solved it with copy of original optimize-directory from package(zip-file) in the Kibana home directory.

I have create the issue, but I cannot add the label ☹ Here is the issue [https://github.com/elastic/kibana/issues/7730](https://github.com/elastic/kibana/issues/7730)

---

<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:** [July 6, 2017, 1:47pm UTC](https://discuss.elastic.co/t/calendar-in-time-filter-from-monday-to-sunday-instead-of-sunday-to-saturday/55043/6 "2017-07-06T13:47:00Z")

</div>


