I want to generate 24 months based on the given month and year.
for ex: if i gave "Nov-23" as rule input
i want to get next 24 months list, result something like this {Dec-23,jan-24,feb-24,mar-24,apr-24}.
can someone help to achieve this
Discussion posts and replies are publicly visible
Hi Anitha Dharmalingam ,
Below code will help you
a!localVariables( local!input:"Nov-23", local!dummyDate:todate("01-"&local!input), a!forEach( items: enumerate(24)+1, expression: text(todate(a!addDateTime(local!dummyDate,0,fv!item,0,0,0,0)),"mmm-yy") ) )
Thank you Sriramkaja it works!!