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:
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:
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.
Be sure to upvote it here:
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.