its simple, have two groups ready one for date and one for hour, each group will have controls like end date, start hours etc
based on the dropdown on how they would like to search, display the group using conditions like if dropdown value is “Rent By Day” this group is visible ?
similar search conditions have to made on the repeating group or other element where you want to make the search happen