System.DateTime.Equals Method

Returns a value indicating whether this instance is equal to a specified object.

Syntax

public override bool Equals (object value)

Parameters

value
The object to compare to this instance.

Returns

true if value is an instance of DateTime and equals the value of this instance; otherwise, false.

Remarks

The current instance and value are equal if their DateTime.Ticks property values are equal. Their DateTime.Kind property values are not considered in the test for equality.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0