Check out example codes for "c# subtract 24 hours form datetime". It will help you in understanding the concepts better.

Code Example 1

DateTime dt1 = dt.AddHours(-24);

Learn ReactJs, React Native from akashmittal.com