# How to convert "/" separated string to time data

**URL:** <https://discuss.elastic.co/t/how-to-convert-separated-string-to-time-data/115109>\
**Category:** Logstash\
**Created:** [January 11, 2018, 2:29pm UTC](https://discuss.elastic.co/t/how-to-convert-separated-string-to-time-data/115109 "2018-01-11T14:29:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sava](https://avatars.discourse-cdn.com/v4/letter/s/bc8723/32.png) [@Sava](https://discuss.elastic.co/u/Sava)\
**Post date:** [January 11, 2018, 2:29pm UTC](https://discuss.elastic.co/t/how-to-convert-separated-string-to-time-data/115109/1 "2018-01-11T14:29:00Z")

</div>

I want to convert string to timestamp(ISO8601) data  
My message looks like:  
_/2018/01/11/08/39/02_

How to convert /2018/01/11/08/39/02 to 2018-01-11 08:39:02?

Thank you.

---

<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:** [February 8, 2018, 2:29pm UTC](https://discuss.elastic.co/t/how-to-convert-separated-string-to-time-data/115109/2 "2018-02-08T14:29:12Z")

</div>

Closed on February 8, 2018, 2:29pm UTC

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