Returns the DateTime result of adding this instance to a TimeSpan.
[Visual Basic] Public Function Add( _ ByVal value As TimeSpan _ ) As DateTime [C#] public DateTime Add( TimeSpan value ); [C++] public: DateTime Add( TimeSpan value ); [JScript] public function Add( value : TimeSpan ) : DateTime;
The DateTime value that results from adding the specified TimeSpan to this instance.
Exception Type | Condition |
---|---|
ArgumentException | If the resulting DateTime is outside the supported range. |
A specified TimeSpan is added to this instance of DateTime, and the result is returned as a new DateTime.
DateTime Structure | DateTime Members | System Namespace | TimeSpan