This is being used in crystal reports. I thought the interval type may conflict with the field type.
Then i simply declared the datetimeVar as a variable, with the argument is a datetime field as well.
datetimeVar d1 := {CallSheets.tMaintDate};
When I checked the formula I received the following message.
“The result selection of the formula must be a Boolean”