# StarComponent Date Time Input - start date and an end date

**URL:** <https://forum.inductiveautomation.com/t/starcomponent-date-time-input-start-date-and-an-end-date/82995>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [December 11, 2023, 6:05pm UTC](https://forum.inductiveautomation.com/t/starcomponent-date-time-input-start-date-and-an-end-date/82995 "2023-12-11T18:05:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![italogustavoaraujo](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/italogustavoaraujo/32/55235_2.png) [@italogustavoaraujo](https://forum.inductiveautomation.com/u/italogustavoaraujo)\
**Post date:** [December 11, 2023, 6:05pm UTC](https://forum.inductiveautomation.com/t/starcomponent-date-time-input-start-date-and-an-end-date/82995/1 "2023-12-11T18:05:29Z")

</div>

How can I use the same Date component to select the start date and an end date?

I am currently using two components to achieve this, as shown below:

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

---

<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:** [December 11, 2023, 6:34pm UTC](https://forum.inductiveautomation.com/t/starcomponent-date-time-input-start-date-and-an-end-date/82995/2 "2023-12-11T18:34:37Z")

</div>

There is no date range ability in the current version of any of the date picker components, I'm afraid.

You can make it a little easier by setting the minDate of the second picke equal to the selected date of the first picker.

Another option is to use a start date and a dropdown for 1 day, 2 days, ... 7 days, 14 days, 28 days, etc.

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [December 11, 2023, 6:55pm UTC](https://forum.inductiveautomation.com/t/starcomponent-date-time-input-start-date-and-an-end-date/82995/3 "2023-12-11T18:55:06Z")

</div>

Be sure to upvote it here:

> **[Perspective - date picker that allows selecting date range | Ignition...](https://ideas.inductiveautomation.com/ignition-features-and-ideas/p/perspective-date-picker-that-allows-selecting-date-range)**

---

<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:** [December 11, 2023, 7:00pm UTC](https://forum.inductiveautomation.com/t/starcomponent-date-time-input-start-date-and-an-end-date/82995/4 "2023-12-11T19:00:22Z")

</div>

As a workaround, consider using a custom property to hold a clipped ending timestamp, that computes the maximum end TS for the given start TS, and constrains the expression to that range. Use the expression in your historian bindings instead of the user-selected timestamp. Show a warning on the UI if the effective end timestamp doesn't exactly match the user-selected end timestamp.
