Mono Class Library: System.DateTime Overview | Members

System.DateTime.Subtract Method

Subtracts a specified date and time from the current instance.

public TimeSpan Subtract (DateTime value)

Parameters

value
An instance of DateTime.

Returns

A TimeSpan interval equal to the date and time represented by the current instance minus the date and time represented by the specified DateTime.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0