Equals Method

DateTime.Equals Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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

Show:
© 2016 Microsoft