
It was an easy job with classic VB to find difference between 2 dates or times. Even though it is not very difficult, it is a tricky and confusing thing in C# and VB.NET.
See the following sample code, which demonstrates how to calculate the difference between two DateTime objects using C# syntax.
|