Equality 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 equal.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Syntax
'Declaration
Public Shared Operator = ( _
d1 As DateTime, _
d2 As DateTime _
) As Boolean
public static bool operator ==(
DateTime d1,
DateTime d2
)
public:
static bool operator ==(
DateTime d1,
DateTime d2
)
static let inline (=)
d1:DateTime *
d2:DateTime : bool
JScript does not support overloaded operators.
Parameters
- d1
Type: System. . :: . .DateTime
The first object to compare.
- d2
Type: System. . :: . .DateTime
The second object to compare.
Return Value
Type: System. . :: . .Boolean
true if d1 and d2 represent the same date and time; otherwise, false.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.