SqlDateTime.Subtract Method (SqlDateTime, TimeSpan)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: