SqlDateTime::Subtract Method (SqlDateTime, TimeSpan)

 

Subtracts the specified Timespan from this SqlDateTime instance.

Namespace:   System.Data.SqlTypes
Assembly:  System.Data (in System.Data.dll)

public:
static SqlDateTime Subtract(
	SqlDateTime x,
	TimeSpan t
)

Parameters

x
Type: System.Data.SqlTypes::SqlDateTime

A SqlDateTime value.

t
Type: System::TimeSpan

A Timespan value.

.NET Framework
Available since 2.0
Return to top
Show: