Export (0) Print
Expand All
0 out of 2 rated this helpful - Rate this topic

DateTime Operators

.NET Framework 1.1

The operators of the DateTime structure are listed here. For a complete list of DateTime structure members, see the DateTime Members topic.

Public Operators

public operatorstatic (Shared in Visual Basic)Addition Operator

Supported by the .NET Compact Framework.

Adds a specified time interval to a specified date and time, yielding a new date and time.
public operatorstatic (Shared in Visual Basic)Equality Operator

Supported by the .NET Compact Framework.

Determines whether two specified instances of DateTime are equal.
public operatorstatic (Shared in Visual Basic)Greater Than Operator

Supported by the .NET Compact Framework.

Determines whether one specified DateTime is greater than another specified DateTime.
public operatorstatic (Shared in Visual Basic)Greater Than Or Equal Operator

Supported by the .NET Compact Framework.

Determines whether one specified DateTime is greater than or equal to another specified DateTime.
public operatorstatic (Shared in Visual Basic)Inequality Operator

Supported by the .NET Compact Framework.

Determines whether two specified instances of DateTime are not equal.
public operatorstatic (Shared in Visual Basic)Less Than Operator

Supported by the .NET Compact Framework.

Determines whether one specified DateTime is less than another specified DateTime.
public operatorstatic (Shared in Visual Basic)Less Than Or Equal Operator

Supported by the .NET Compact Framework.

Determines whether one specified DateTime is less than or equal to another specified DateTime.
public operatorstatic (Shared in Visual Basic)Subtraction Operator

Supported by the .NET Compact Framework.

Overloaded. Subtracts a specified DateTime or TimeSpan from a specified DateTime.

See Also

DateTime Structure | System Namespace

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.