# XY Chart parsing date in tooltip for a category rendered MM-dd to get day of week

**URL:** <https://forum.inductiveautomation.com/t/xy-chart-parsing-date-in-tooltip-for-a-category-rendered-mm-dd-to-get-day-of-week/71711>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [March 28, 2023, 2:59pm UTC](https://forum.inductiveautomation.com/t/xy-chart-parsing-date-in-tooltip-for-a-category-rendered-mm-dd-to-get-day-of-week/71711 "2023-03-28T14:59:50Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [March 28, 2023, 5:34pm UTC](https://forum.inductiveautomation.com/t/xy-chart-parsing-date-in-tooltip-for-a-category-rendered-mm-dd-to-get-day-of-week/71711/2 "2023-03-28T17:34:55Z")

</div>

`{dateX.formatDate('EEE')}`

> [@Perspective XY Chart xAxes tooltip text {dateX}](https://forum.inductiveautomation.com/t/perspective-xy-chart-xaxes-tooltip-text-datex/53580/9):
>
> Further examples: Count: [bold]{valueY}[/] Time: [bold]{dateX.formatDate('HH:mm')}[/] {dateX.formatDate('yyyy-MMM-dd')} {dateX.formatDate('EEE')} This is specified in props.series.0.line.appearance.bullets.0.tooltip.text, etc. See the AM Charts [Formatting date and time](https://www.amcharts.com/docs/v4/concepts/formatters/formatting-date-time/) for more details.

---

_[View the full topic](https://forum.inductiveautomation.com/t/xy-chart-parsing-date-in-tooltip-for-a-category-rendered-mm-dd-to-get-day-of-week/71711)._
