# Type date not working

**URL:** <https://discuss.elastic.co/t/type-date-not-working/233283>\
**Category:** Kibana\
**Created:** [May 19, 2020, 8:49am UTC](https://discuss.elastic.co/t/type-date-not-working/233283 "2020-05-19T08:49:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![floow](https://avatars.discourse-cdn.com/v4/letter/f/7ab992/32.png) [@floow](https://discuss.elastic.co/u/floow)\
**Post date:** [May 19, 2020, 8:49am UTC](https://discuss.elastic.co/t/type-date-not-working/233283/1 "2020-05-19T08:49:55Z")

</div>

Hello,

for the last three days I have been trying to get my Kibana to recognize dates, but with no luck. I am importing the data via python looking like this:

```auto
b’\n{"index": {"_index": "index-test"}} \n{"Type" : "_doc","Name": "Daivd" ,"Country": "UK" ,”Date": "2020-05-18 00:00:00" } \n'

```

my mapping looks like this:

```auto
PUT index-test
{
  "mappings": {
    "_doc": {
      "properties": {
        "Name": {"type": "string","ignore_malformed": true},
        "Country": {"type": "string","ignore_malformed": true},
        "Date": {"type": "date", "format":"yyyy-MM-dd HH:mm:ss"}
      }
    }
  }
}

```

However after uploading the data the date is always recognized as a string, not a date. Do you have any idea on how I can change my mapping or my upload string in order for the date to get recognized as a date.

Regards

---

<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 16, 2020, 8:50am UTC](https://discuss.elastic.co/t/type-date-not-working/233283/2 "2020-06-16T08:50:17Z")

</div>

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