DateTimeEquality Operator |
Determines whether two specified instances of
DateTime are equal.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public static bool operator ==(
DateTime d1,
DateTime d2
)
Parameters
- d1
- Type: SystemDateTime
The first object to compare. - d2
- Type: SystemDateTime
The second object to compare.
Return Value
Type:
Booleantrue if
d1 and
d2 represent the same date and time; otherwise, false.
See Also