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 Less Than Operator

Determines whether one DateTime value is less than a specified DateTime.

[C#]
public static bool operator <(
   DateTime t1,
   DateTime t2
);
[C++]
public: static bool operator op_LessThan(
   DateTime t1,
   DateTime t2
);
[JScript]
returnValue = t1 < t2;

[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]

t1
The first DateTime value.
t2
The second DateTime value.

Parameters [C#, C++]

t1
The first DateTime value.
t2
The second DateTime value.

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

true if the first DateTime is less than the second DateTime; otherwise, false.

Remarks [C#, C++, JScript]

This operator determines whether the first DateTime value is less than the second DateTime value (t1 < t2) and returns a Boolean value that represents their relationship.

See Also

DateTime Structure | DateTime Members | System Namespace | Boolean