Date.Operator Compare

From Xojo Documentation

Method

Date.Operator_Compare(d as Date) As integer

Supported for all project types and targets.

Returns an integer whose meaning is as follows: <0 means that the date associated with the current Date object is before the passed date, 0 means that it is equal to the passed date, and >0 means that it is after the passed date.