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)

public static bool operator !=(
	DateTime t1,
	DateTime t2
)

Parameters

t1
Type: System..::..DateTime
The first object to compare.
t2
Type: System..::..DateTime
The second object to compare.

Return Value

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

Show: