I can get the Hours/Minutes/Seconds difference between 2 DateTime.
But I am trying to get the common time between 2 datetime, but not.
Example:
public class Meeting
{
public DateTime Start { get; set; }
public DateTime End { get; set; }
}
Here I am added the times.
var list = new List<Meeting>();
list.Add(
new Meeting
{
Start = DateTime.Parse("12/13/2018 09:00 AM"),
End = DateTime.Parse("12/13/2018 10:00 AM")
}
);
list.Add(
new Meeting
{
Start = DateTime.Parse("12/13/2018 09:45 AM"),
End = DateTime.Parse("12/13/2018 10:30 AM")
}
);
So, here I am trying to get the commont time between 2 lists.
The common time is 15 Minutes and the Time is 9:45 AM to 10:00 AM.
So, any suggestions to get the time 9:45 AM to 10:00 AM.