# Need a date parser for my custom date fielsd

**URL:** <https://discuss.elastic.co/t/need-a-date-parser-for-my-custom-date-fielsd/39390>\
**Category:** Logstash\
**Created:** [January 16, 2016, 10:02pm UTC](https://discuss.elastic.co/t/need-a-date-parser-for-my-custom-date-fielsd/39390 "2016-01-16T22:02:20Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [January 17, 2016, 4:37pm UTC](https://discuss.elastic.co/t/need-a-date-parser-for-my-custom-date-fielsd/39390/2 "2016-01-17T16:37:25Z")

</div>

You probably need to strip away the "th" (and "nd" and "st") that can come after the day as the date filter isn't capable of ignoring it automatically. Or, specify multiple date patterns and let the filter try them all until it gets a match. Untested:

```auto
date {
  match => [
    "name-of-your-field",
    "MMM dd'th' yyyy, HH:mm:ss.SSS",
    "MMM dd'nd' yyyy, HH:mm:ss.SSS",
    "MMM dd'st' yyyy, HH:mm:ss.SSS"
  ]
  locale => "en"
}

```

---

_[View the full topic](https://discuss.elastic.co/t/need-a-date-parser-for-my-custom-date-fielsd/39390)._
