# Perspective Historical Chart Start and End Date

**URL:** <https://forum.inductiveautomation.com/t/perspective-historical-chart-start-and-end-date/26696>\
**Category:** Ignition\
**Created:** [July 19, 2019, 1:56am UTC](https://forum.inductiveautomation.com/t/perspective-historical-chart-start-and-end-date/26696 "2019-07-19T01:56:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrew.Zebic](https://avatars.discourse-cdn.com/v4/letter/a/a183cd/32.png) [@Andrew.Zebic](https://forum.inductiveautomation.com/u/Andrew.Zebic)\
**Post date:** [July 19, 2019, 1:56am UTC](https://forum.inductiveautomation.com/t/perspective-historical-chart-start-and-end-date/26696/1 "2019-07-19T01:56:29Z")

</div>

Hi, I’m trying to put bind the start and end date of a chart to datetime inputs on the same window, however I am getting an error\_exception informing me that it is in an invalid date format. I have tried various inputs into the start and end date. The graph will work fine if I manually enter a date of format dd/mm/yyyy however when selecting the date-only input for the date-input component, it will convert it to a date/time format again. Additionally the graph will not accept any other format. Is there a good workaround to this, and is this a bug that will be fixed in the near future?

Thanks,  
Andrew

---

<div class="post-metadata">

**Author:** ![openphantom](https://avatars.discourse-cdn.com/v4/letter/o/2acd7d/32.png) [@openphantom](https://forum.inductiveautomation.com/u/openphantom)\
**Post date:** [July 19, 2019, 12:59pm UTC](https://forum.inductiveautomation.com/t/perspective-historical-chart-start-and-end-date/26696/2 "2019-07-19T12:59:07Z")

</div>

Hi  
I work in this format for Start and End:

2019-07-19 12:38:00

---

<div class="post-metadata">

**Author:** ![osolorzano](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/osolorzano/32/6432_2.png) [@osolorzano](https://forum.inductiveautomation.com/u/osolorzano)\
**Post date:** [July 20, 2019, 12:05am UTC](https://forum.inductiveautomation.com/t/perspective-historical-chart-start-and-end-date/26696/3 "2019-07-20T00:05:17Z")

</div>

If I understand correctly, you are binding the start and end date from a history binding to one of the datetime inputs formatted date values like `datetimeinput.props.formattedValues.date`. What’s nice about the chart is that it _should_ understand the datetime input’s value property as a proper timestamp. Try binding it to `datetimeinput.props.value` instead. If that doesn’t work then can you explain how exactly you are binding the datetime inputs to the chart?

---

<div class="post-metadata">

**Author:** ![Andrew.Zebic](https://avatars.discourse-cdn.com/v4/letter/a/a183cd/32.png) [@Andrew.Zebic](https://forum.inductiveautomation.com/u/Andrew.Zebic)\
**Post date:** [July 21, 2019, 11:28pm UTC](https://forum.inductiveautomation.com/t/perspective-historical-chart-start-and-end-date/26696/4 "2019-07-21T23:28:09Z")

</div>

Hi @osolorzano and @openphantom,  
Thanks for the responses. What fixed it was also changing the format section of the date-time input (not only the chart) to a purely date input, and binding to the date formatted value as well.  
Thanks for the help.
