# How to parse DateTime from Logstash to Elasticsearch?

**URL:** https://discuss.elastic.co/t/how-to-parse-datetime-from-logstash-to-elasticsearch/62441
**Category:** Elasticsearch
**Created:** [October 6, 2016, 10:33pm UTC](https://discuss.elastic.co/t/how-to-parse-datetime-from-logstash-to-elasticsearch/62441 "2016-10-06T22:33:36Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![milincjoshi](https://avatars.discourse-cdn.com/v4/letter/m/278dde/32.png) [@milincjoshi](https://discuss.elastic.co/u/milincjoshi)
#### Post date: [October 6, 2016, 10:33pm UTC](https://discuss.elastic.co/t/how-to-parse-datetime-from-logstash-to-elasticsearch/62441/1 "2016-10-06T22:33:36Z")

</div>

Hi,

I have a json object which contains timestamp assume under field x. Here is an example of a json object  
`[{ "name":"milin","log_time":"9/6/2016 3:30:22 PM" }, { "name":"joshi","log_time":"9/6/2016 3:30:23 PM" }]`

How do I extract just the date part from the above json using logstash/Elasticsearch and insert it in Elasticsearch?

---

<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 5, 2017, 10:14pm UTC](https://discuss.elastic.co/t/how-to-parse-datetime-from-logstash-to-elasticsearch/62441/2 "2017-07-05T22:14:10Z")

</div>


