# AppSearch Date field precision(milliseconds)

**URL:** <https://discuss.elastic.co/t/appsearch-date-field-precision-milliseconds/240403>\
**Category:** Elastic Search\
**Tags:** elastic-app-search\
**Created:** [July 8, 2020, 4:29pm UTC](https://discuss.elastic.co/t/appsearch-date-field-precision-milliseconds/240403 "2020-07-08T16:29:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mbrimmer83](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mbrimmer83/32/52975_2.png) [@mbrimmer83](https://discuss.elastic.co/u/mbrimmer83)\
**Post date:** [July 8, 2020, 4:29pm UTC](https://discuss.elastic.co/t/appsearch-date-field-precision-milliseconds/240403/1 "2020-07-08T16:29:08Z")

</div>

I am inserting dates into AppSearch(v7.6.2 we have not upgraded to Enterprise) with a format of 2020-07-08T15:08:21.086Z and the precision/milliseconds are dropped and the date is 2020-07-08T15:08:21+00:00. Is there anyway to increase or force the precision on the date field in AppSearch?

---

<div class="post-metadata">

**Author:** ![qhoxie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/qhoxie/32/47252_2.png) [@qhoxie](https://discuss.elastic.co/u/qhoxie)\
**Post date:** [July 8, 2020, 4:46pm UTC](https://discuss.elastic.co/t/appsearch-date-field-precision-milliseconds/240403/2 "2020-07-08T16:46:43Z")

</div>

We don't currently allow changing the precision of dates, but I'm making a note of the use-case so we can evaluate it in the future. You can try storing it as a numeric field and use milliseconds since unix epoch.

---

<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:** [August 5, 2020, 4:46pm UTC](https://discuss.elastic.co/t/appsearch-date-field-precision-milliseconds/240403/3 "2020-08-05T16:46:48Z")

</div>

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