1
Reply

how to get the Time difference

Ask a question
sunil

sunil

17y
1.7k
1
Hi Guys, I would like to know how we can get the time difference in hours in C#. Eg. If i have a time A) 11:22 and B) 21:22 I need to know the difference between B and A with + ve or -ve diff. That is A - B = - 10 Always this is my order of executiton ( A - B). Awaiting a response. Thanks, Sunil.

Answers (1)