Using the Classic Framework. I want to test to see if d1 >= d2, where d1 and d2 are Date objects. I want to test them only as Dates, not DateTimes. I know I can set the Hour, Minute and Second for each one to 0 and then test that way. But now I’m comparing these instead:
d1.SQLDate
d2.SQLDate
That appears to allow a successful comparison of Dates without comparing DateTimes, doing things like this:
For the case of date AND time yes, but the OP was asking about comparing the date part ONLY without setting the hour, minute, and second values to zero. And the easiest way (I know of) is to compare SQLDate properties.
And I never said it was the ONLY way – merely said totalseconds works for the case of date and time. Not sure why you think I inferred it was the only way. But the OP post has been resolved, so there is little point to a continued semantic argument now.