DateTime.Equals Method (DateTime, DateTime)
Determines whether two specified DateTime objects have the same date/time value.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Syntax
public static bool Equals (
DateTimet1,
DateTimet2
)
Parameters
- t1
The first DateTime object whose date/time value you want to compare. - t2
The second DateTime object whose date/time value you want to compare.
Return Value
true if the t1 and t2 parameters specify the same date and time; otherwise, false.
Version Information
Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, and 4.1.