This documentation is archived and is not being maintained.
DateTime::Equals Method (DateTime)
Visual Studio 2010
Returns a value indicating whether the value of this instance is equal to the value of the specified DateTime instance.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- value
- Type: System::DateTime
The object to compare to this instance.
Return Value
Type: System::Booleantrue if the value parameter equals the value of this instance; otherwise, false.
Implements
IEquatable<T>::Equals(T)The current instance and value are equal if their Ticks property values are equal. Their Kind property values are not considered in the test for equality.
This method implements the System::IEquatable<T> interface, and performs slightly better than the Equals method because the value parameter does not have to be converted to an object.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: