Set the selected time in dates[0]