Jaa


Date.CompareTo Method

Definition

Overloads

CompareTo(Date)

Compares the value of this instance to a specified Date value and returns an integer that indicates whether this instance is earlier than, the same as, or later than the specified Date value.

CompareTo(Object)

Compares the value of this instance to a object value and returns an integer that indicates whether this instance is earlier than, the same as, or later than the object if it is a Date.

CompareTo(Date)

Compares the value of this instance to a specified Date value and returns an integer that indicates whether this instance is earlier than, the same as, or later than the specified Date value.

public int CompareTo (Microsoft.OData.Edm.Date other);
abstract member CompareTo : Microsoft.OData.Edm.Date -> int
override this.CompareTo : Microsoft.OData.Edm.Date -> int
Public Function CompareTo (other As Date) As Integer

Parameters

other
Date

The object to compare to the current instance

Returns

Value Description Less than zero This instance is earlier than value. Zero This instance is the same as value. Greater than zero This instance is later than value.

Implements

Applies to

CompareTo(Object)

Compares the value of this instance to a object value and returns an integer that indicates whether this instance is earlier than, the same as, or later than the object if it is a Date.

public int CompareTo (object obj);
abstract member CompareTo : obj -> int
override this.CompareTo : obj -> int
Public Function CompareTo (obj As Object) As Integer

Parameters

obj
Object

The object to compare to the current instance

Returns

Value Description Less than zero This instance is earlier than value. Zero This instance is the same as value. Greater than zero This instance is later than value.

Implements

Applies to