Click or drag to resize
DateTimeEquality Operator
Determines whether two specified instances of DateTime are equal.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
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: Boolean
true if d1 and d2 represent the same date and time; otherwise, false.
See Also