Determines whether two specified instances of DateTime are equal.
true if d1 and d2 represent the same date and time; otherwise, false.
The DateTime.op_Equality(DateTime, DateTime) operator determines whether two DateTime values are equal by comparing their number of ticks. Before comparing DateTime objects, make sure that the objects represent times in the same time zone. You can do this by comparing the values of their DateTime.Kind property.