DEV Community

Cover image for C# DateTime Subtract
Bradley Wells
Bradley Wells

Posted on • Originally published at wellsb.com on

C# DateTime Subtract

Suppose you want to get the number of days between two dates, or the number of seconds between two times. In C#, you can use the method to compute the difference between dates and times. The method will determine the duration between two dates or times. More specifically, it will return a object which represents the difference between two objects. The syntax for using follows: In this case...

Source

Latest comments (0)