Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Equals Method (DateTime, DateTime)
Collapse the table of content
Expand the table of content

DateTime.Equals Method (DateTime, DateTime)

.NET Micro Framework 3.0
Determines whether two specified DateTime objects have the same date/time value.

Namespace: System
Assembly: mscorlib (in mscorlib.dll)

public static bool Equals (
         DateTime t1,
         DateTime t2
)

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.

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, 4.1, and 4.2.

Community Additions

ADD
Show:
© 2015 Microsoft