# Date range component's 'endDate' property is wrong

**URL:** <https://forum.inductiveautomation.com/t/date-range-components-enddate-property-is-wrong/71392>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [March 21, 2023, 3:44pm UTC](https://forum.inductiveautomation.com/t/date-range-components-enddate-property-is-wrong/71392 "2023-03-21T15:44:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [March 21, 2023, 3:44pm UTC](https://forum.inductiveautomation.com/t/date-range-components-enddate-property-is-wrong/71392/1 "2023-03-21T15:44:47Z")

</div>

Good day to you all wonderful people,

I've been messing with vision a bit lately, and here's something that bothers me. A lot. This:

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/b/8bea51c9d625c26aff670db9ff38a17f51161ebd.png)

Notice anything wrong ? Yep, the time says 2pm, but the slider goes up to 3pm.  
Zooming just a bit more...

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/0/d06bd65807b521a91ed02ba3ac05025614efb013.png)

And it becomes 2:59. Was it 2:59 all along but was truncated ?

But WHY would it be 2:59 ? I entered the time manually at the zoom level of the first screenshot (without the minutes).  
And, sure enough, the `Data.endDate` property actually is 2:59 !

Practical use that gets boinked because of this:  
Add a report viewer, bind its `endDate` parameter to the date range's `Data.endDate`, enter the desired time range... and you get one extra hour on your report.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/8/4818435b61f77d896d32e5f95b3ffd768c7e7d94.png)

It's weird and I don't like it !

Version is 8.1.25.

Well that's all for me, you guys have a good day !

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [March 21, 2023, 7:56pm UTC](https://forum.inductiveautomation.com/t/date-range-components-enddate-property-is-wrong/71392/2 "2023-03-21T19:56:44Z")

</div>

That end date doesn't look very _compliant_. I hope it's in the report 🙂

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [March 22, 2023, 12:31am UTC](https://forum.inductiveautomation.com/t/date-range-components-enddate-property-is-wrong/71392/3 "2023-03-22T00:31:06Z")

</div>

Yeah, Vision's date range components don't do half-open intervals like they should. 🤷‍♂️
