Example: Mapping the DATEDIFF function
The mapping for the DATEDIFF function uses symbols and does not return Boolean values. Parentheses are required:
<FunctionMapping FunctionName="DATEDIFF" DatePart="yyyy">
  (YEAR ($P2) – YEAR ($P1))
</FunctionMapping>

Additional Links:

Copyright Actuate Corporation 2012