You can use
Date.Compare
function tow compare two Date by passing Two Date as a parameter.See Example :
Date.Compare(Date1, Date2)
Or there is another way to Compare Two Dates. You can use
DateDiff
Function
which is more suitable as compare to
Compare
. See Example :
DateDiff(DateInterval.Day, Date1, Date2)
I hope it will help you. :)
--MKB