Export (0) Print
Expand All

DateTime Operators

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 later than another specified DateTime.
Public operator Static member GreaterThanOrEqual Determines whether one specified DateTime represents a date and time that is the same as or later than 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 earlier than another specified DateTime.
Public operator Static member LessThanOrEqual Determines whether one specified DateTime represents a date and time that is the same as or earlier than 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:
© 2014 Microsoft