The onTimeRangeSelect event is called when the selectd date is changed by the user, before the target element is updated.
DayPilot.DatePicker.onTimeRangeSelect(args);
args.date
- the selected date (DayPilot.Date object)
args.preventDefault()
- cancels the default action (i.e., updating the target element)