Share via


Inequality Operator

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Determines whether two specified instances of DateTime are not equal.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

Syntax

'Declaration
Public Shared Operator <> ( _
    t1 As DateTime, _
    t2 As DateTime _
) As Boolean
public static bool operator !=(
    DateTime t1,
    DateTime t2
)
public:
static bool operator !=(
    DateTime t1, 
    DateTime t2
)
static let inline (<>)
        t1:DateTime * 
        t2:DateTime  : bool
JScript does not support overloaded operators.

Parameters

Return Value

Type: System. . :: . .Boolean
true if t1 and t2 do not represent the same date and time; otherwise, false.

.NET Framework Security

See Also

Reference

DateTime Structure

System Namespace