This documentation is archived and is not being maintained.
DateTime Inequality Operator
.NET Framework 1.1
Determines whether two specified instances of DateTime are not equal.
[Visual Basic] returnValue = DateTime.op_Inequality(d1, d2) [C#] public static bool operator !=( DateTime d1, DateTime d2 ); [C++] public: static bool op_Inequality( DateTime d1, DateTime d2 ); [JScript] returnValue = d1 != d2;
[Visual Basic] In Visual Basic, you can use the operators defined by a type, but you cannot define your own. You can use the Equals method instead of the DateTime inequality operator.
[JScript] In JScript, you can use the operators defined by a type, but you cannot define your own.
Arguments [Visual Basic, JScript]
Parameters [C#, C++]
Return Value
true if d1 and d2 do not represent the same date and time; otherwise, false.
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard
See Also
DateTime Structure | DateTime Members | System Namespace | Boolean
Show: