DateTime Operators

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

The DateTime type exposes the following members.

  Name Description
Public operator Static member Addition Adds a specified time interval to a specified date and time, yielding a new date and time.
Public operator Static member Equality Determines whether two specified instances of DateTime are equal.
Public operator Static member GreaterThan Determines whether one specified DateTime is greater than another specified DateTime.
Public operator Static member GreaterThanOrEqual Determines whether one specified DateTime is greater than or equal to another specified DateTime.
Public operator Static member Inequality Determines whether two specified instances of DateTime are not equal.
Public operator Static member LessThan Determines whether one specified DateTime is less than another specified DateTime.
Public operator Static member LessThanOrEqual Determines whether one specified DateTime is less than or equal to another specified DateTime.
Public operator Static member Subtraction(DateTime, DateTime) Subtracts a specified date and time from another specified date and time and returns a time interval.
Public operator Static member Subtraction(DateTime, TimeSpan) Subtracts a specified time interval from a specified date and time and returns a new date and time.
Top
Show: