SqlDateTime::Subtraction Operator (SqlDateTime, TimeSpan)

 

Subtracts the supplied TimeSpan structure, t, from the supplied SqlDateTime structure.

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

public:
static SqlDateTime operator -(
	SqlDateTime x,
	TimeSpan t
)

Parameters

x
Type: System.Data.SqlTypes::SqlDateTime

A SqlDateTime structure.

t
Type: System::TimeSpan

A TimeSpan structure.

Return Value

Type: System.Data.SqlTypes::SqlDateTime

A SqlDateTime structure representing the results of the subtraction.

.NET Framework
Available since 1.1
Return to top
Show: