Hi everyone,
I have a use case where a due date will be the 2nd Wednesday of the next month of given month and year.
Discussion posts and replies are publicly visible
Hi rupalis645561 ,Please check the below code :
a!localVariables( local!dates: a!forEach( items: enumerate(daysinmonth(ri!month + 1, ri!year)) + 1, expression: { date(ri!year, ri!month + 1, fv!item) } ), local!weeks: weekday(local!dates), index( local!dates, index(wherecontains(4, local!weeks), 3) ) )
I hope this code is performant and reduce complexity.