Please see:
DateTime Structure[
^]
especially the
AddDays()
,
AddHours()
,
AddMinutes()
and
AddSeconds()
methods, that should bring you everything you need for your task.
There is also another way to add 'something' to a DateTime: it is a
TimeSpan
, which holds the notion of a duration in time and natively supports basic arithmetic operations with a DateTime object. Example:
DateTime myDate = new DateTime(2014, 3, 7, 11, 12, 00);
TimeSpan ts = TimeSpan.FromHours(1);
myDate += ts;
Hope this helps.