Click or drag to resize
DateTimeEquals Method (DateTime, DateTime)
Returns a value indicating whether two DateTime instances have the same date and time value.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public static bool Equals(
	DateTime t1,
	DateTime t2
)

Parameters

t1
Type: SystemDateTime
The first object to compare.
t2
Type: SystemDateTime
The second object to compare.

Return Value

Type: Boolean
true if the two values are equal; otherwise, false.
See Also