Added implementation to keep the dates correct

Added events to the date time pickers so that the end date is always
after the start date