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

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

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method Equals(DateTime) Returns a value indicating whether the value of this instance is equal to the value of the specified DateTime instance.
Public method Equals(Object) Returns a value indicating whether this instance is equal to a specified object. (Overrides ValueType.Equals(Object).)
Public method Static member Equals(DateTime, DateTime) Returns a value indicating whether two DateTime instances have the same date and time value.
Top

Community Additions

Show:
© 2017 Microsoft