# Tooltip date type .format ,How to use

**URL:** <https://forum.inductiveautomation.com/t/tooltip-date-type-format-how-to-use/80530>\
**Category:** Ignition\
**Tags:** perspective, ignition81\
**Created:** [October 16, 2023, 1:33pm UTC](https://forum.inductiveautomation.com/t/tooltip-date-type-format-how-to-use/80530 "2023-10-16T13:33:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![samer\_samy](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/samer_samy/32/52910_2.png) [@samer\_samy](https://forum.inductiveautomation.com/u/samer_samy)\
**Post date:** [October 16, 2023, 1:33pm UTC](https://forum.inductiveautomation.com/t/tooltip-date-type-format-how-to-use/80530/1 "2023-10-16T13:33:38Z")

</div>

Dears,  
I am not able to show the x-axis value in tooltip of my trend as required.  
I put the tooltip as you see :  
`{name}:{dateX.formatdate("yyyy-MM-dd HH:mm:ss")} [Bold]{valueY.formatNumber("#,###.0")}[/] Cases`

The x axis is date type, it just shows the date without time in the tooltip,although the x axis is datetime.

 ![Screenshot 2023-10-16 152144](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/3/f3b8e72fcfa7049c7e937fc04b29c39f886b367f.png)

How to fix this ?

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [October 16, 2023, 3:02pm UTC](https://forum.inductiveautomation.com/t/tooltip-date-type-format-how-to-use/80530/2 "2023-10-16T15:02:26Z")

</div>

I figured out quite a bit of this stuff and posted it all here:

> [@Perspective XY Chart xAxes tooltip text {dateX}](https://forum.inductiveautomation.com/t/perspective-xy-chart-xaxes-tooltip-text-datex/53580/8):
>
> Just only add new line and it working \n not functionally

---

<div class="post-metadata">

**Author:** ![samer\_samy](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/samer_samy/32/52910_2.png) [@samer\_samy](https://forum.inductiveautomation.com/u/samer_samy)\
**Post date:** [October 19, 2023, 11:42am UTC](https://forum.inductiveautomation.com/t/tooltip-date-type-format-how-to-use/80530/3 "2023-10-19T11:42:16Z")

</div>

{dateX.formatDate('dd:MM:yyyy HH:mm')}  
working after using this ,many thanks

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [October 19, 2023, 1:51pm UTC](https://forum.inductiveautomation.com/t/tooltip-date-type-format-how-to-use/80530/4 "2023-10-19T13:51:56Z")

</div>

> [@samer\_samy](#):
>
> dd:MM:yyyy

I don't think that is a standard date format in any lingo. I fell foul of this in the past due to ignorance. It seems to be usually `dd/mm/yyyy` and `yyyy-mm-dd`. Colons are reserved for `hh:mm:ss`. It might be worth checking.

---

<div class="post-metadata">

**Author:** ![samer\_samy](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/samer_samy/32/52910_2.png) [@samer\_samy](https://forum.inductiveautomation.com/u/samer_samy)\
**Post date:** [October 19, 2023, 2:20pm UTC](https://forum.inductiveautomation.com/t/tooltip-date-type-format-how-to-use/80530/5 "2023-10-19T14:20:21Z")

</div>

thanks, I fixed it
