DateTimeOffset.CompareTo(DateTimeOffset) Method

Definition

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