I’m looking to find out the most efficient pseudo-code in order to achieve the following conditions:
- I have an “event” which has a start and an end date (S1, S2)
- I am try to find out if this even occurs within a specific time-frame (D1, D2)
- If the event only lasts for one day, it will not have an end date
- I only want one occurrence of the event in the query.
If anybody is able to assist with tbe psuedo code behind such a query, I’d be grateful.
It’s for use within a LINQ query.
To check if the event over laps a specific time frame use