Share via


DateTime.operator == Method

Determines whether two specified DateTime objects have the same date/time value.

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

Syntax

 public static bool operator == (
         DateTime d1,
         DateTime d2
)

Parameters

  • d1
    The first DateTime object whose date/time value you want to compare.
  • d2
    The first DateTime object whose date/time value you want to compare.

Return Value

true if the d1 and d2 parameters specify the same date and time; otherwise, false.

Version Information

Available in .NET Micro Framework version 2.0, 2.5

See Also

Reference

DateTime Structure
DateTime Members
System Namespace