# Can i use "date type field" more than two?

**URL:** <https://discuss.elastic.co/t/can-i-use-date-type-field-more-than-two/317671>\
**Category:** Elasticsearch\
**Created:** [October 28, 2022, 10:06am UTC](https://discuss.elastic.co/t/can-i-use-date-type-field-more-than-two/317671 "2022-10-28T10:06:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hellocomputer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hellocomputer/32/100718_2.png) [@hellocomputer](https://discuss.elastic.co/u/hellocomputer)\
**Post date:** [October 28, 2022, 10:06am UTC](https://discuss.elastic.co/t/can-i-use-date-type-field-more-than-two/317671/1 "2022-10-28T10:06:00Z")

</div>

Hello  
I want to use a field called "timestamp" as time series data.  
I'm using monstache to connect mongoDB and Elasticsearch.  
In mostache mapping file, I set type of timestamp to "date". But, in elastic index, type of timestamp is "text"

what's the wrong of this situation?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 31, 2022, 1:40am UTC](https://discuss.elastic.co/t/can-i-use-date-type-field-more-than-two/317671/2 "2022-10-31T01:40:11Z")

</div>

Did you create a mapping in Elasticsearch as well?

---

<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:** [November 28, 2022, 1:40am UTC](https://discuss.elastic.co/t/can-i-use-date-type-field-more-than-two/317671/3 "2022-11-28T01:40:41Z")

</div>

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