compareTo
compareTo(value) (1 of 2)
Compares the value of this instance to a specified object that contains a specified DateTime value, and returns an integer that indicates whether this instance is earlier than, the same as, or later than the specified DateTime value.
| Parameter | Type | Description |
|---|---|---|
| value | Object | A boxed DateTime object to compare, or null. |
Returns: A signed number indicating the relative values of this instance and value. 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, or value is null.
compareTo(value) (2 of 2)
Compares the value of this instance to a specified DateTime value and returns an integer that indicates whether this instance is earlier than, the same as, or later than the specified DateTime value.
| Parameter | Type | Description |
|---|---|---|
| value | DateTime | A DateTime object to compare. |
Returns: A signed number indicating the relative values of this instance and the value parameter. 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.