Question: how to find time difference between two times in c#?
Answer: 4 Answers. string startTime = "7:00 AM"; string endTime = "2:00 PM"; TimeSpan duration = DateTime. Parse(endTime). Subtract(DateTime.