how to get before 1 hour from specfic tim in c# code example Example: c# subtract 24 hours form datetime DateTime dt1 = dt.AddHours(-24);