This documentation is archived and is not being maintained.
DateTime Operators
Visual Studio 2010
The DateTime type exposes the following members.
| Name | Description | |
|---|---|---|
|
Addition | Adds a specified time interval to a specified date and time, yielding a new date and time. |
|
Equality | Determines whether two specified instances of DateTime are equal. |
|
GreaterThan | Determines whether one specified DateTime is greater than another specified DateTime. |
|
GreaterThanOrEqual | Determines whether one specified DateTime is greater than or equal to another specified DateTime. |
|
Inequality | Determines whether two specified instances of DateTime are not equal. |
|
LessThan | Determines whether one specified DateTime is less than another specified DateTime. |
|
LessThanOrEqual | Determines whether one specified DateTime is less than or equal to another specified DateTime. |
|
Subtraction(DateTime, DateTime) | Subtracts a specified date and time from another specified date and time and returns a time interval. |
|
Subtraction(DateTime, TimeSpan) | Subtracts a specified time interval from a specified date and time and returns a new date and time. |
Show: