# Logstash import date

**URL:** <https://discuss.elastic.co/t/logstash-import-date/272992>\
**Category:** Logstash\
**Created:** [May 14, 2021, 8:30am UTC](https://discuss.elastic.co/t/logstash-import-date/272992 "2021-05-14T08:30:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nikssssss](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nikssssss/32/115176_2.png) [@nikssssss](https://discuss.elastic.co/u/nikssssss)\
**Post date:** [May 14, 2021, 8:30am UTC](https://discuss.elastic.co/t/logstash-import-date/272992/1 "2021-05-14T08:30:02Z")

</div>

hello, i want to pass a field ("datetime") as date with this format 1/19/21 12:00 so i add in the conf file the following :

```auto

date {						 
					match => ["datetime", "MM/dd/yy HH:mm"]  
					
					target => "Dateread"
					
				}

```

but elastic search cant understand the field Dateread as date, what can i do?

---

<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:** [June 11, 2021, 8:30am UTC](https://discuss.elastic.co/t/logstash-import-date/272992/2 "2021-06-11T08:30:32Z")

</div>

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