# Supporting different calendars, like Jalali (persian) calendar

**URL:** <https://discuss.elastic.co/t/supporting-different-calendars-like-jalali-persian-calendar/336433>\
**Category:** Elasticsearch\
**Created:** [June 20, 2023, 6:34am UTC](https://discuss.elastic.co/t/supporting-different-calendars-like-jalali-persian-calendar/336433 "2023-06-20T06:34:25Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![nevahid](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nevahid/32/122562_2.png) [@nevahid](https://discuss.elastic.co/u/nevahid)\
**Post date:** [June 20, 2023, 6:34am UTC](https://discuss.elastic.co/t/supporting-different-calendars-like-jalali-persian-calendar/336433/1 "2023-06-20T06:34:25Z")

</div>

is it possible to filter dates based on different calendar type? i mean instead of Gregorian date, we use Jalali (Shamsi) calendar, where month names and days are different.  
i would be very grateful if you can help me. thanks in advance.

---

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [June 21, 2023, 4:11pm UTC](https://discuss.elastic.co/t/supporting-different-calendars-like-jalali-persian-calendar/336433/2 "2023-06-21T16:11:07Z")

</div>

Hi @nevahid,

Welcome to the community! By filter are you referring to the datepicker in Kibana?

---

<div class="post-metadata">

**Author:** ![nevahid](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nevahid/32/122562_2.png) [@nevahid](https://discuss.elastic.co/u/nevahid)\
**Post date:** [June 21, 2023, 6:48pm UTC](https://discuss.elastic.co/t/supporting-different-calendars-like-jalali-persian-calendar/336433/3 "2023-06-21T18:48:00Z")

</div>

Hi @carly.richmond ,  
In fact i'm using opensearch and opensearch dashboard, but i couldn't find a solution to my problem, so i asked my question here.  
I'm saving dates in my locale, Jalali date which is different from Gregorian. i can save it in another field and query over that, but i this way i can't show it in a time series. is there any possiblity we can use Jalali calendar in backend?  
Thank you very much

---

<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:** [June 21, 2023, 6:48pm UTC](https://discuss.elastic.co/t/supporting-different-calendars-like-jalali-persian-calendar/336433/4 "2023-06-21T18:48:00Z")

</div>

OpenSearch/OpenDistro are AWS run products and differ from the original Elasticsearch and Kibana products that Elastic builds and maintains. You may need to contact them directly for further assistance.

(This is an automated response from your friendly Elastic bot. Please report this post if you have any suggestions or concerns :elasticheart: )

---

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [June 22, 2023, 9:15am UTC](https://discuss.elastic.co/t/supporting-different-calendars-like-jalali-persian-calendar/336433/5 "2023-06-22T09:15:10Z")

</div>

Thanks for the background @nevahid. Did you post your question in either the [OpenSearch discussion forum](https://forum.opensearch.org/) or [Slack](https://opensearch.org/slack.html)?

As mentioned by the bot message, the products have diverged significantly since the fork so I wouldn't be confident in a solution for OpenSearch to this problem. If you haven't posted a question on the above Slack or forum I would recommend posting there, or alternatively raising a GitHub issue on their repo.

Answering for Elasticsearch, I see a [recent issue](https://github.com/elastic/elasticsearch/issues/96938) raised (not sure if this was by yourself or another developer given the timing) that suggests trying to [write an equivalent Painless script](https://github.com/elastic/elasticsearch/issues/96938#issuecomment-1598380692) or converting the date downstream.

Hope that helps!

---

<div class="post-metadata">

**Author:** ![nevahid](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nevahid/32/122562_2.png) [@nevahid](https://discuss.elastic.co/u/nevahid)\
**Post date:** [June 24, 2023, 4:40am UTC](https://discuss.elastic.co/t/supporting-different-calendars-like-jalali-persian-calendar/336433/6 "2023-06-24T04:40:20Z")

</div>

Yes, I have posted that question, I will try that solution to see if it works, but I wouldn't mind switching to Elastic or any alternative if I can have the Jalali Calendar available. Anyway thank you again for responding. 🙂

---

<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 22, 2023, 4:40am UTC](https://discuss.elastic.co/t/supporting-different-calendars-like-jalali-persian-calendar/336433/7 "2023-07-22T04:40:51Z")

</div>

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