Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

DateTime Operators

The DateTime type exposes the following members.

  NameDescription
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
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.