You need to sign in to do that
Don't have an account?
Laurie 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?
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.
- https://salesforce.stackexchange.com/questions/167228/how-to-check-whether-a-dates-is-between-two-dates-in-apex-trigger
- https://success.salesforce.com/answers?id=9063A000000DiLnQAK
Please let us know if this helps.Kindly mark this as solved if the reply was helpful.
Thanks,
Nagendra