NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

DateTime Equality Operator

Determines whether two DateTime values are equal.

[C#]
public static bool operator ==(
   DateTime d1,
   DateTime d2
);
[C++]
public: static bool operator op_Equality(
   DateTime d1,
   DateTime d2
);
[JScript]
returnValue = d1 == d2;

[Visual Basic] In Visual Basic, you cannot use the operators defined by a type, nor override them or define your own.

[JScript] In JScript, you can use the operators defined by a type, but you cannot override them or define your own.

Arguments [JScript]

d1
The first DateTime.
d2
The second DateTime.

Parameters [C#, C++]

d1
The first DateTime.
d2
The second DateTime.

Return Value [C#, C++, JScript]

true if two DateTime values represent the same date and time; otherwise, false.

Remarks [C#, C++, JScript]

Thos operator compares two DateTime values for equality (d1 and d2) and returns a value the represents a Boolean determination of their are equality.

The operator is called using "==".

See Also

DateTime Structure | DateTime Members | System Namespace | Boolean