Click or drag to resize
DateTime Operators

The DateTime type exposes the following members.

Operators
  NameDescription
Public operatorStatic memberEquality
Determines whether two specified instances of DateTime are equal.
Public operatorStatic memberSubtraction(DateTime, DateTime)
Subtracts a specified date and time from another specified date and time and returns a time interval.
Public operatorStatic memberSubtraction(DateTime, TimeSpan)
Subtracts a specified time interval from a specified date and time and returns a new date and time.
Top
See Also