Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

add 45 or 90 days to an input date, depending on date


Level 1

I'm a newbie - I want to add 45 days to an input date if it is before 01/01/2012 and add 90 days to the input date if it is after 01/01/12. So far, i have the following:


if (LEOPDate100B_RequestedBOE.rawValue ne null) then

Num2Date(Date2Num(LEOPDate100B_RequestedBOE.formattedValue,"MMM D, YYYY")+ 90,"MMM D, YYYY")




I'm not sure how to add the qualifier date. I've looked in all the forums i can find and can't find any help. Any assistance is greatly appreciated!

0 Replies