Share via


Subtraction Operator

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Subtracts a specified DateTime or TimeSpan from a specified DateTime.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public operatorStatic member Subtraction(DateTime, DateTime) Subtracts a specified date and time from another specified date and time and returns a time interval.
Public operatorStatic member Subtraction(DateTime, TimeSpan) Subtracts a specified time interval from a specified date and time and returns a new date and time.

Top

See Also

Reference

DateTime Structure

System Namespace