# Custom DateTime Format

**URL:** https://discuss.elastic.co/t/custom-datetime-format/48063
**Category:** Elasticsearch
**Created:** [April 21, 2016, 2:41pm UTC](https://discuss.elastic.co/t/custom-datetime-format/48063 "2016-04-21T14:41:12Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![geek876](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/geek876/32/9329_2.png) [@geek876](https://discuss.elastic.co/u/geek876)
#### Post date: [April 21, 2016, 2:41pm UTC](https://discuss.elastic.co/t/custom-datetime-format/48063/1 "2016-04-21T14:41:12Z")

</div>

I have a template that creates custom mappings for time

curl -XPUT '[http://10.6.98.232:9200/\_template/custom\_time](http://10.6.98.232:9200/_template/custom_time)' -d '  
{  
"template" : "logstash\*",  
"mappings": {  
"fluentd": {  
"properties": {  
"time": {  
"type": "date",  
"format": "yyyy-MM-dd HH:mm:ss,SSS"  
}  
}  
}  
}  
}  
}'

My time format is 2016-04-20 11:06:40,126

Within Kibana, I can see 'time' is coming as 'date' but it is not discovering anything when I use 'time' as 'Time-Field' Name.

Not sure where I am getting it wrong.

---

<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: [July 5, 2017, 10:57pm UTC](https://discuss.elastic.co/t/custom-datetime-format/48063/2 "2017-07-05T22:57:16Z")

</div>


