Using two date pickers to represent a publish and unpublish time, we want the publishing time to never be after the unpublish time.
We’ve set the max date on the publish date Date Picker to the value of the unpublish date, and the min date on the unpublish date Date Picker to the value of the publish date.
This correctly affects which calendar days the users can select, but the time of day is unaffected, meaning users can enter an unpublishing time before the publishing time:
