I have meeting date say 19/03/2022 7:am to 9 am.
I want to check if above schedule date time is conflicting with list of other event which has got start and end date time similar to above format.
I want to do this in c# can anyone help me with above requirement.
public class ScheduledEvent {
public int EventId { get; set; }
public DateTime StartDateTime {get; set; }
public DateTime EndDateTime { get; set; }
}
List<ScheduledEvent>
Schedules - has list of already scheduled date times.
Bool checkdatetimeconflict(datetime startdatetime, datetime enddatetime)
{
List<PlannedEvents> lstEvents;//already planned event are in this list
}
lstEvents has list of EventId, StartDateTime,EndDateTime as attributes in the classes