# \[Help\] Display Concurrency between 2 date-type

**URL:** <https://discuss.elastic.co/t/help-display-concurrency-between-2-date-type/286351>\
**Category:** Kibana\
**Created:** [October 11, 2021, 8:58am UTC](https://discuss.elastic.co/t/help-display-concurrency-between-2-date-type/286351 "2021-10-11T08:58:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hoaf13](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hoaf13/32/95676_2.png) [@hoaf13](https://discuss.elastic.co/u/hoaf13)\
**Post date:** [October 11, 2021, 8:58am UTC](https://discuss.elastic.co/t/help-display-concurrency-between-2-date-type/286351/1 "2021-10-11T08:58:35Z")

</div>

I have 2 date-type:

- "timestamp\_pickup\_at" : "2021-09-06T04:10:28.070Z",
- "timestamp\_hangup\_at" : "2021-09-06T04:10:36.022Z"

I want to visualize that as a conccurency date histogram.  
I refer to this [topic](https://discuss.elastic.co/t/display-concurrency-in-data-on-kibana/26006/13) but not work.

This is my INPUT JSON:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/9/d/9d150e26bed930d717ebc2133033633195dcad14.png)

Help me, please.

---

<div class="post-metadata">

**Author:** ![sebastien](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sebastien/32/36119_2.png) [@sebastien](https://discuss.elastic.co/u/sebastien)\
**Post date:** [October 11, 2021, 2:56pm UTC](https://discuss.elastic.co/t/help-display-concurrency-between-2-date-type/286351/2 "2021-10-11T14:56:44Z")

</div>

Hello @hoaf13

Welcome to our community!

It seems that the script that you copied is pretty old. Can you try with this updated one?

```auto
"script": "def start = doc['start_date'].value; def duration = doc['duration'].value*1000*1000; def l = []; for (long i = 0; i < duration; i += 60000) { l.add(start + i); }; return l;",

```

Cheers  
Sébastien

---

<div class="post-metadata">

**Author:** ![hoaf13](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hoaf13/32/95676_2.png) [@hoaf13](https://discuss.elastic.co/u/hoaf13)\
**Post date:** [October 14, 2021, 8:27am UTC](https://discuss.elastic.co/t/help-display-concurrency-between-2-date-type/286351/3 "2021-10-14T08:27:07Z")

</div>

Sorry for late replying, thanks for your support but it do not work for me

It announces that: Do not add date field to int field. ☹

---

<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 11, 2021, 8:27am UTC](https://discuss.elastic.co/t/help-display-concurrency-between-2-date-type/286351/4 "2021-11-11T08:27:32Z")

</div>

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