This documentation is archived and is not being maintained.

DateTime.op_Subtraction Method

Subtracts a specified DateTime or TimeSpan from a specified DateTime.

Name Description
DateTime.op_Subtraction (DateTime, DateTime) Subtracts a specified date and time from another specified date and time, yielding a time interval.

Supported by the .NET Compact Framework.

DateTime.op_Subtraction (DateTime, TimeSpan) Subtracts a specified time interval from a specified date and time, yielding a new date and time.

Supported by the .NET Compact Framework.

Show: