GreaterThan Method

SqlDateTime.GreaterThan Method (SqlDateTime, SqlDateTime)


Compares two instances of SqlDateTime to determine whether the first is greater than the second.

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

public static SqlBoolean GreaterThan(
	SqlDateTime x,
	SqlDateTime y

Return Value

Type: System.Data.SqlTypes.SqlBoolean

A SqlBoolean that is True if the first instance is greater than the second instance. Otherwise, False. If either instance of SqlDateTime is null, the Value of the SqlBoolean will be Null.

.NET Framework
Available since 1.1
Return to top
© 2015 Microsoft