DateTime dt = new DateTime();
dt = DateTime.Now;
DateTime newdt = new DateTime();
TimeSpan tim = new TimeSpan(-X, 0, 0, 0, 0);
newdt = dt.Add(tim);
MessageBox.Show(newdt.ToString());
x = your number(+x means future date, -X means past datetime)
hope this help full.
Timespan(-x,0,0,0,0) will specify date and time of past
but just noew i read carefully your requirment hours right??
so just tri this Timespan(0,-X,0,0,0)