Hi @Raj301189 :
I assume selected date is a list:
ClearCollect(
SelectedDate,
{StartDate:DateTimeValue("2022-04-10 12AM"),EndDate:DateTimeValue("2022-04-11 12AM")},
{StartDate:DateTimeValue("2022-04-11 12AM"),EndDate:DateTimeValue("2022-04-12 12AM")},
{StartDate:DateTimeValue("2022-04-12 12AM"),EndDate:DateTimeValue("2022-04-13 12AM")}
)
and there are two date picker controls (DatePickerStart/DatePickerEnd)
You could try this formula to get if the select dates are overlapping with the already selected date range:
IsBlank(LookUp(
SelectedDate,
(DatePickerStart.SelectedDate<EndDate && DatePickerStart.SelectedDate>=StartDate) ||
(DatePickerEnd.SelectedDate<=EndDate && DatePickerEnd.SelectedDate>StartDate) ||
(DatePickerEnd.SelectedDate>=EndDate && DatePickerStart.SelectedDate<=StartDate)
))
This formula will return true if the dates are not overlapping with the already selected date range.
Best Regards,
Bof