Calculate the date 6 months old from today, please advise with recipes
Discussion posts and replies are publicly visible
Hi pd5143, Kindly try this solutiona!localVariables( local!a:year(today()), local!b, a!flatten( a!forEach( items: enumerate(3), expression: append(local!b,local!a-(fv!index-1)) )),)
Try this
year(today()) - enumerate(3)
Would you please stop recommending such code snippets!
Appian expressions is a functional language and local variables cannot be modified after initial assignment. Your code does not append anything to that local!b.