# Show only time with out date

**URL:** <https://discuss.elastic.co/t/show-only-time-with-out-date/104798>\
**Category:** Kibana\
**Created:** [October 22, 2017, 11:14am UTC](https://discuss.elastic.co/t/show-only-time-with-out-date/104798 "2017-10-22T11:14:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomer](https://avatars.discourse-cdn.com/v4/letter/t/41988e/32.png) [@tomer](https://discuss.elastic.co/u/tomer)\
**Post date:** [October 22, 2017, 11:14am UTC](https://discuss.elastic.co/t/show-only-time-with-out-date/104798/1 "2017-10-22T11:14:58Z")

</div>

Hi,

How can I show only the time and not the date?

![image](https://us1.discourse-cdn.com/elastic/original/3X/b/1/b15c69b32af06c7848174ac0d1bc0b9488df6a24.png)

Basically to show only what is in a circle and not the Oct. part.

Thanks!

---

<div class="post-metadata">

**Author:** ![timroes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timroes/32/19712_2.png) [@timroes](https://discuss.elastic.co/u/timroes)\
**Post date:** [October 23, 2017, 1:45pm UTC](https://discuss.elastic.co/t/show-only-time-with-out-date/104798/2 "2017-10-23T13:45:52Z")

</div>

Hi Tomer,

you can configure a field formatter in the index settings, that will only show the time and not the date.

1. Head to "Management \> Kibana \> Index Patterns"
2. Select the appropriate index pattern
3. Search the _MedGotMsgFromApi_ field, and hit the Pencil button behind it.
4. Switch the _Format_ select to **Date**..
5. Enter an appropriate time expression (e.g. `HH:mm:ss`) in the format box below.

If you need the field in some places with date and in others without date, you can create a "Scripted Field" in the same index pattern, that has `doc['MedGotMsgFromApi'].value` as a script, and apply that field formatter to the scripted field instead. That way you have access to both, the field with full date and the field shortened.

Cheers,  
Tim

---

<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 20, 2017, 1:46pm UTC](https://discuss.elastic.co/t/show-only-time-with-out-date/104798/3 "2017-11-20T13:46:36Z")

</div>

Closed on November 20, 2017, 1:46pm UTC

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