Mapping date addition functions: DateAddMapper element
DATEADD takes three arguments: a date part, an integer delta value, and a timestamp value. It returns a timestamp that applies the delta value to the specified part of the original timestamp:
Timestamp dateadd( datepart Varchar, delta Integer, value Timestamp )
The DateAddMapper element is used to customize the mappings for the date parts listed in Table 11-12. The table also shows the default template for each date part.
Example: Mapping the DATEADD functions
Your database has a different syntax for the DATEADD functions. You define each part using a mapping:
<DateAddMapper>
  <FunctionMappings>
    <FunctionMapping FunctionName="DATEADD"
      DatePart="yyyy">
      ($P1 + $P0 YEARS)
    </FunctionMapping>
    …
    <FunctionMapping FunctionName="DATEADD"
      DatePart="y">
      ($P1 + $P0 DAYS)
    </FunctionMapping>
  </FunctionMappings>
</DateAddMapper>

Additional Links:

Copyright Actuate Corporation 2012