DateTime.operator + Method

Adds a specified period of time to a specified DateTime object, yielding a new DateTime object.

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


public static DateTime operator + (
         DateTime d,
         TimeSpan t


  • d
    A DateTime object that specifies a date and time.
  • t
    A TimeSpan object that specifies a period of time.

Return Value

A DateTime object that represents the sum of the d and t parameters.

Version Information

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

See Also


DateTime Structure
DateTime Members
System Namespace