Overlapping Range Check

Certified Senior Developer

Hi,

There are two date fields in database 'startDate' and 'endDate' for every record. I want to check overlapping conditions while user try to insert new set of date range for a new record. For eg. if we had 'startDate' and 'endDate' as '20 Dec 2019' and '5 Jan 2020' respectively, we cannot add new 'startDate' and 'endDate' as '25 Dec 2019' and '15 Jan 2020' because it is overlapping.

  Discussion posts and replies are publicly visible