Comparing dates

Hi
Can you compare dates using math operators ><=>= ??
in order to know wich date is older ?

Tks

If it’s a Date object, yes.

But remember to use the .TotalSeconds property for comparison.

From the Language Reference: Because Date implements Operator_Compare, you can use the normal comparison operators to compare date values.

If however you only want to compare dates, use SQLDate. Otherwise the exact time that you may not care about will come into play.

Sorry for misleading, Bob is right.