# Inconsistent date fields returned

**URL:** https://discuss.elastic.co/t/inconsistent-date-fields-returned/230209
**Category:** Elasticsearch
**Created:** [April 28, 2020, 3:24pm UTC](https://discuss.elastic.co/t/inconsistent-date-fields-returned/230209 "2020-04-28T15:24:33Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ngtlin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ngtlin/32/67304_2.png) [@ngtlin](https://discuss.elastic.co/u/ngtlin)
#### Post date: [April 28, 2020, 3:24pm UTC](https://discuss.elastic.co/t/inconsistent-date-fields-returned/230209/1 "2020-04-28T15:24:33Z")

</div>

I have an index which has 3 fields of "date" type, @timestamp, startTime and endTime with built-in format (default strict\_date\_optional\_time || epoch\_millis). Run a query, elastic search (7.6.1) return iso8601 String for @timestamp while epoch milliseconds for startTime and endTime. Is there a way to make elastic search to return the same format of the date type?

---

<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: [May 26, 2020, 3:24pm UTC](https://discuss.elastic.co/t/inconsistent-date-fields-returned/230209/2 "2020-05-26T15:24:37Z")

</div>

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