# How to extract time from a time stamp?

**URL:** <https://discuss.elastic.co/t/how-to-extract-time-from-a-time-stamp/136463>\
**Category:** Elasticsearch\
**Created:** [June 19, 2018, 10:17am UTC](https://discuss.elastic.co/t/how-to-extract-time-from-a-time-stamp/136463 "2018-06-19T10:17:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vissa](https://avatars.discourse-cdn.com/v4/letter/v/f04885/32.png) [@vissa](https://discuss.elastic.co/u/vissa)\
**Post date:** [June 19, 2018, 10:17am UTC](https://discuss.elastic.co/t/how-to-extract-time-from-a-time-stamp/136463/1 "2018-06-19T10:17:11Z")

</div>

I have 'start' and 'end' timestamps for a particular process. These time stamps contain data in "month date year hour minute second millisecond" format.

I need to find the delta time between the start and end times.

How do I do this?

---

<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 17, 2018, 10:17am UTC](https://discuss.elastic.co/t/how-to-extract-time-from-a-time-stamp/136463/2 "2018-07-17T10:17:16Z")

</div>

Closed on July 17, 2018, 10:17am UTC

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