# Issue with dynamic\_date\_formats for string with epoch\_millis

**URL:** https://discuss.elastic.co/t/issue-with-dynamic-date-formats-for-string-with-epoch-millis/209965
**Category:** Elasticsearch
**Created:** [November 29, 2019, 11:54am UTC](https://discuss.elastic.co/t/issue-with-dynamic-date-formats-for-string-with-epoch-millis/209965 "2019-11-29T11:54:28Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![DK\_3](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dk_3/32/48003_2.png) [@DK\_3](https://discuss.elastic.co/u/DK_3)
#### Post date: [November 29, 2019, 11:54am UTC](https://discuss.elastic.co/t/issue-with-dynamic-date-formats-for-string-with-epoch-millis/209965/1 "2019-11-29T11:54:28Z")

</div>

Hi, I'm trying to understand why `"dynamic_date_formats":"epoch_millis"` doesn't work.  
The `PUT my_index_one/_doc/1` below doesn't return. It seems to hang in Kibana Dev Console.  
I expect it to return and the foo field to be mapped as a date.

```auto
PUT _template/template_1
{
    "order":0,
    "index_patterns":[
        "my_*"
    ],
    "settings":{
        "index":{
            "number_of_shards":"1",
            "number_of_replicas":"0"
        }
    },
    "mappings":{
        "date_detection":true,
        "dynamic_date_formats":"epoch_millis"
    }    
}
PUT my_index_one/_doc/1
{
  "foo": "1574420642643"
}
GET my_index_one/_mapping
GET my_index_one/_doc/1

```

---

<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: [December 27, 2019, 11:54am UTC](https://discuss.elastic.co/t/issue-with-dynamic-date-formats-for-string-with-epoch-millis/209965/2 "2019-12-27T11:54:29Z")

</div>

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