# Hovertemplate: how to show just time from datetime

**URL:** <https://community.plotly.com/t/hovertemplate-how-to-show-just-time-from-datetime/54928>\
**Category:** Dash Python\
**Created:** [July 21, 2021, 9:33pm UTC](https://community.plotly.com/t/hovertemplate-how-to-show-just-time-from-datetime/54928 "2021-07-21T21:33:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![weez](https://avatars.discourse-cdn.com/v4/letter/w/3ab097/32.png) [@weez](https://community.plotly.com/u/weez)\
**Post date:** [July 21, 2021, 9:33pm UTC](https://community.plotly.com/t/hovertemplate-how-to-show-just-time-from-datetime/54928/1 "2021-07-21T21:33:15Z")

</div>

On my dash Plotly Graph Objects graph, I have time for x-axis data in the format of yyyy-mm-dd hh:mm:ss.000. I want to show just the hh:mm:ss.000 part in the hover text. What format of hovertemplate should I use? I’ve tried playing around with things like `hovertemplate = 'Time: %{x: %H:%M:%S.%L}` and it’s giving me NaN. (The %H:%M:%S.%L format worked for plotly express but not for graph object and I would really like to keep using a graph object graph).
