I would like to be able to compare dates to know which was later.
I have Date1 and Date2, where sometimes Date 2 is not set.
If I do this:
if Date2>Date1 then
Date2
else
Date1
I always get Date 2, even when there isn' t a date set in the field. I would like to get Date2 if it is later and if it is not set, use Date1. These values are declared as dates in the table that I pull them from .
How do I compare them?