# Get the full date format in elasticsearch

**URL:** <https://discuss.elastic.co/t/get-the-full-date-format-in-elasticsearch/281310>\
**Category:** Elasticsearch\
**Created:** [August 13, 2021, 7:48am UTC](https://discuss.elastic.co/t/get-the-full-date-format-in-elasticsearch/281310 "2021-08-13T07:48:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sandeep\_Raju](https://avatars.discourse-cdn.com/v4/letter/s/8797f3/32.png) [@Sandeep\_Raju](https://discuss.elastic.co/u/Sandeep_Raju)\
**Post date:** [August 13, 2021, 7:48am UTC](https://discuss.elastic.co/t/get-the-full-date-format-in-elasticsearch/281310/1 "2021-08-13T07:48:13Z")

</div>

Hi all,  
In an old project, the date fields have been mapped and data is present.  
Now in Kibana, I can see human readable format of date

When i Use _GET_ API to get format of date in devtools, i get ony format of date field as "date".

Any way where i can get the full format as  
_epoch_ or _epoch\_millis_ or dd MMM YYYY etc as i want to continue feeding data in same format and i don't get errors.

---

<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:** [August 17, 2021, 1:18am UTC](https://discuss.elastic.co/t/get-the-full-date-format-in-elasticsearch/281310/2 "2021-08-17T01:18:09Z")

</div>

If it's not specified, then it is using the default.

[Date field type | Elasticsearch Guide [8.11] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/date.html);

> Date formats can be customised, but if no format is specified then it uses the default:
> 
> `"strict_date_optional_time||epoch_millis"`

---

<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:** [September 14, 2021, 1:18am UTC](https://discuss.elastic.co/t/get-the-full-date-format-in-elasticsearch/281310/3 "2021-09-14T01:18:41Z")

</div>

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