I want to substrate one day from my date, so that when my date is 30-7-2013 than I want 29-7-2013
Just use the AddDays
method, remembering that it doesn't change the value it's called on - it returns a new DateTime
value.
DateTime date = ...;
date = date.AddDays(-1);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With