Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DateTime.Equals Method

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Returns a value indicating whether two DateTime objects, or a DateTime instance and another object or DateTime, have the same value.

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

NameDescription
System_CAPS_pubmethodEquals(DateTime)

Returns a value indicating whether the value of this instance is equal to the value of the specified DateTime instance.

System_CAPS_pubmethodSystem_CAPS_staticEquals(DateTime, DateTime)

Returns a value indicating whether two DateTime instances have the same date and time value.

System_CAPS_pubmethodEquals(Object)

Returns a value indicating whether this instance is equal to a specified object.(Overrides ValueType.Equals(Object).)

Return to top
Show:
© 2017 Microsoft