Updated setOptions to toggle timepicker and datepicker