# Date format in format Wed Jan 13 2016 18:28:28 GMT+0100

**URL:** <https://discuss.elastic.co/t/date-format-in-format-wed-jan-13-2016-18-28-28-gmt-0100/102244>\
**Category:** Elasticsearch\
**Created:** [September 29, 2017, 10:29am UTC](https://discuss.elastic.co/t/date-format-in-format-wed-jan-13-2016-18-28-28-gmt-0100/102244 "2017-09-29T10:29:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AshishThakur](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ashishthakur/32/3600_2.png) [@AshishThakur](https://discuss.elastic.co/u/AshishThakur)\
**Post date:** [September 29, 2017, 10:29am UTC](https://discuss.elastic.co/t/date-format-in-format-wed-jan-13-2016-18-28-28-gmt-0100/102244/1 "2017-09-29T10:29:25Z")

</div>

Input for my elastic has some dates in format below. Though I can use `"date_detection": false` but using that I can't use range filters etc as the date would be indexed as string.

Is there a preprocessor using which I can trim to only to a valid date?

```auto
response": {
            "option_value": {
              "created": "Wed Jan 13 2016 18:28:28 GMT+0100",

```

---

<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:** [October 27, 2017, 10:30am UTC](https://discuss.elastic.co/t/date-format-in-format-wed-jan-13-2016-18-28-28-gmt-0100/102244/2 "2017-10-27T10:30:18Z")

</div>

Closed on October 27, 2017, 10:30am UTC

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