Share via


Equals Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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.

Overload List

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

Top

See Also

Reference

DateTime Structure

System Namespace