Home > FAQ > Data Manipulation > Date Rounding in Expressions

Date Rounding in Expressions

There are times when you need to adjust a date in a data default or transformation expression. For example, you might need:

Most of the techniques used in the following examples will work anywhere, including benefit formulas, accrual basis formulas and selections expressions.  


Dates are numbers!
DATEPLUS and DATEMINUS use duration NOT actual days, months or years!
Don't use #DATEPLUS/#DATEMINUS if you need to add/subtract exact number of days to/from a date
Never adjust an end of a measurement period date using #DATEPLUS or #DATEMINUS
If you start with an end of month, will you end up with an end of month using #DATEPLUS/#DATEMINUS?
Use the plan year without actually knowing the plan year
You can use #DATEPLUS and #DATEMINUS to calculate calendar plan and anniversary dates
Beginning of the current ... examples
End of the current ... examples
Beginning of the next ... examples
End of the previous measurement period
How many days in examples
Find the ... examples
Day of the year
Round a date to ... examples
Business days examples
Is a date an end of measurement period date