Date.Operator Compare
From Xojo Documentation
Method
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.