DateTimeOffset.CompareTo(DateTimeOffset) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Compares the current DateTimeOffset object to a specified DateTimeOffset object and indicates whether the current object is earlier than, the same as, or later than the second DateTimeOffset object.
public:
virtual int CompareTo(DateTimeOffset other);
public int CompareTo(DateTimeOffset other);
abstract member CompareTo : DateTimeOffset -> int
override this.CompareTo : DateTimeOffset -> int
Public Function CompareTo (other As DateTimeOffset) As Integer
Parameters
- other
- DateTimeOffset
An object to compare with the current DateTimeOffset object.
Returns
A signed integer that indicates the relationship between the current