You could use `to` instead of using a selector, same for the `onClose` in the to datepicker.