# Not able to parse Custom Date

**URL:** <https://discuss.elastic.co/t/not-able-to-parse-custom-date/70892>\
**Category:** Logstash\
**Created:** [January 8, 2017, 6:51pm UTC](https://discuss.elastic.co/t/not-able-to-parse-custom-date/70892 "2017-01-08T18:51:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ajit\_Singh](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@Ajit\_Singh](https://discuss.elastic.co/u/Ajit_Singh)\
**Post date:** [January 8, 2017, 6:51pm UTC](https://discuss.elastic.co/t/not-able-to-parse-custom-date/70892/1 "2017-01-08T18:51:45Z")

</div>

I have a date in the format **06/30/2016 00:21:49** , I am trying to parse this date using

```
date {
  match => ["time", "MM/dd/YYYY HH:mm:ss"]
}

```

But the date is still a string value.  
So how can I parse a date if it is not there in prewritten date pattern ??

---

<div class="post-metadata">

**Author:** ![eperry](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eperry/32/551_2.png) [@eperry](https://discuss.elastic.co/u/eperry)\
**Post date:** [January 9, 2017, 2:09am UTC](https://discuss.elastic.co/t/not-able-to-parse-custom-date/70892/2 "2017-01-09T02:09:01Z")

</div>

Yes it will be as the date command is not changing your field By default it updates the @TIMESTAMP field

[https://www.elastic.co/guide/en/logstash/current/plugins-filters-date.html#plugins-filters-date-target](https://www.elastic.co/guide/en/logstash/current/plugins-filters-date.html#plugins-filters-date-target)

---

<div class="post-metadata">

**Author:** ![Ajit\_Singh](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@Ajit\_Singh](https://discuss.elastic.co/u/Ajit_Singh)\
**Post date:** [January 18, 2017, 6:32am UTC](https://discuss.elastic.co/t/not-able-to-parse-custom-date/70892/3 "2017-01-18T06:32:25Z")

</div>

Yeah ! What you said was right. I added `target => "date-time"` (date-time is my custom date field) and now it is working as expected.

---

<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 15, 2017, 6:32am UTC](https://discuss.elastic.co/t/not-able-to-parse-custom-date/70892/4 "2017-02-15T06:32:42Z")

</div>

Closed on February 15, 2017, 6:32am UTC

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