I want to create a custom toggle switch for time on date range in UI , when toggle switch time appear otherwise just date show
enter image description here