Export (0) Print
Expand All

SqlDateTime Operators and Type Conversions

The SqlDateTime type exposes the following members.

  Name Description
Public operator Static member Addition Adds the period of time indicated by the supplied TimeSpan parameter, t, to the supplied SqlDateTime structure.
Public operator Static member Equality Performs a logical comparison of two SqlDateTime structures to determine whether they are equal.
Public operator Static member Explicit(SqlDateTime to DateTime) Converts the SqlDateTime structure to a DateTime structure.
Public operator Static member Explicit(SqlString to SqlDateTime) Converts the SqlString parameter to a SqlDateTime.
Public operator Static member GreaterThan Compares two instances of SqlDateTime to determine whether the first is greater than the second.
Public operator Static member GreaterThanOrEqual Compares two instances of SqlDateTime to determine whether the first is greater than or equal to the second.
Public operator Static member Implicit(DateTime to SqlDateTime) Converts a DateTime structure to a SqlDateTime structure.
Public operator Static member Inequality Performs a logical comparison of two instances of SqlDateTime to determine whether they are not equal.
Public operator Static member LessThan Compares two instances of SqlDateTime to determine whether the first is less than the second.
Public operator Static member LessThanOrEqual Compares two instances of SqlDateTime to determine whether the first is less than or equal to the second.
Public operator Static member Subtraction Subtracts the supplied TimeSpan structure, t, from the supplied SqlDateTime structure.
Top
Show:
© 2014 Microsoft