Share via


DateTime.Equals Method (Object)

Determines whether the specified DateTime object is equal to the current DateTime object.

Namespace: System
Assembly: mscorlib (in mscorlib.dll)

Syntax

public override bool Equals (
         Objectval
)

Parameters

  • val
    A specific date and time.

Return Value

true if the val parameter is the same for the specified DateTime object and the current DateTime object; otherwise, false.

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, and 4.1.

See Also

Reference

DateTime Structure
DateTime Members
System Namespace