Switch cannot be automatically changed based on datetime.
However if you want to show/hide events based on two dates, you can use this filter trick: