function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Laurie DrewLaurie Drew 

How to check whether one date range is between another date range in apex trigger

I have entered dates 11/10/2018 to 21/10/2018 and reserved 15 seats in a webinar, there are a total of 20 seats available in the webinar each day.  Now if I save another reservation for 20 seats is entered for 12/10/2018 to 24/10/2018   I want to know how to check the dates between two dates and total seats available.  Can anyone help?
Best Answer chosen by Laurie Drew
NagendraNagendra (Salesforce Developers) 
Hi Laurie,

Sorry for this issue you are facing.

May I suggest you please refer to below links with a similar discussion which will help you to start off. Please let us know if this helps.

Kindly mark this as solved if the reply was helpful.

Thanks,
Nagendra