Datetime picker minDate and maxDate

I was using two datetime pickers in a page to assign dates to parameters for a query.

What are the best ways to restrict the window size of the date range for two date pickers?
I don't want to switch to one picker. I had considered that, but it's not flexible enough.


I am binding the minDate of the start to the end, and the maxDate of the end to the start.
I don't think it is optimal.

Use additional custom properties to hold "clamped" timestamps, such that the query binding never sees an over-size time span.

1 Like