This topic has not yet been rated - Rate this topic

DateTime.Add Method

.NET Micro Framework 3.0
Adds a specified time period to the current DateTime object, yielding a new DateTime object.

Namespace: System
Assembly: mscorlib (in mscorlib.dll)

public DateTime Add (
         TimeSpan val
)

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.

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, 4.1, and 4.2.

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.