cancel
Showing results for 
Search instead for 
Did you mean: 

Calculate rolling 24 months date based on sysdate in BODS.

0 Kudos

Hi All. I am working on a requirement to calculate the rolling 24 months date based on sysdate in BODS . In oracle it was implemeted as follows:

TRUNC(ADD_MONTHS(SYSDATE - 730,1),'MM'). I am unable to implement the same in BODS since trunc does not work on dates. Please help me on this issue.

View Entire Topic
Julian_Riegel
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi there,

try this:

(ADD_MONTHS(SYSDATE(), -24)) - (day_in_month(ADD_MONTHS(SYSDATE(), -24))-1)

regards,

Julian

0 Kudos

Thanks a lot Jiulian. It works ....