NullableTypes Class Library

NullableDateTime Subtraction Operator 

Subtracts a specified time interval to a specified date and time, yielding a new date and time.

[Visual Basic]
returnValue = NullableDateTime.op_Subtraction(x, t)
[C#]
public static NullableDateTime operator -(
   NullableDateTime x,
   TimeSpan t
);

Parameters

x
A NullableDateTime
t
A System.TimeSpan

Return Value

A NullableDateTime that is the difference of x and t.

See Also

NullableDateTime Class | NullableTypes Namespace