DateTime.Inequality Operator

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Determines whether two specified instances of DateTime are not equal.

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

Syntax

Public Shared Operator <> ( _
    d1 As DateTime, _
    d2 As DateTime _
) As Boolean
public static bool operator !=(
    DateTime d1,
    DateTime d2
)

Parameters

Return Value

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

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

See Also

Reference

DateTime Structure

System Namespace

Boolean