Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

DateTime Operators

The DateTime type exposes the following members.

  Name Description
Public operator Static member Supported by the XNA Framework Supported by Portable Class Library Addition Adds a specified time interval to a specified date and time, yielding a new date and time.
Public operator Static member Supported by the XNA Framework Supported by Portable Class Library Equality Determines whether two specified instances of DateTime are equal.
Public operator Static member Supported by the XNA Framework Supported by Portable Class Library GreaterThan Determines whether one specified DateTime is later than another specified DateTime.
Public operator Static member Supported by the XNA Framework Supported by Portable Class Library 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 Supported by the XNA Framework Supported by Portable Class Library Inequality Determines whether two specified instances of DateTime are not equal.
Public operator Static member Supported by the XNA Framework Supported by Portable Class Library LessThan Determines whether one specified DateTime is earlier than another specified DateTime.
Public operator Static member Supported by the XNA Framework Supported by Portable Class Library 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 Supported by the XNA Framework Supported by Portable Class Library Subtraction(DateTime, DateTime) Subtracts a specified date and time from another specified date and time and returns a time interval.
Public operator Static member Supported by the XNA Framework Supported by Portable Class Library Subtraction(DateTime, TimeSpan) Subtracts a specified time interval from a specified date and time and returns a new date and time.
Top
Show:
© 2015 Microsoft