DateTime.Add Method
Adds a specified time period to the current DateTime object, yielding a new DateTime object.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Syntax
public DateTime Add (
TimeSpanval
)
Parameters
- val
A TimeSpan object that specifies a period of time.
Return Value
A DateTime object that results from the addition of the time period specified in the TimeSpan object's val parameter to the current DateTime object.
Remarks
Version Information
Available in .NET Micro Framework version 2.0, 2.5