Calculate the date 6 months old from today, please advise with recipes
Discussion posts and replies are publicly visible
This can be simplified as follows -
if( and(eomonth(ri!inputDate, 0) = ri!inputDate, month(ri!inputDate) <> 2), eomonth(ri!inputDate, -ri!numOfmonthsBack), eomonth(ri!inputDate, - (ri!numOfmonthsBack+1)) + day(ri!inputDate) )
FYI this website is useful for validation
https://www.timeanddate.com/date/dateadd.html
It can be simplified even more by using the built in function edate()
docs.appian.com/.../fnc_date_and_time_edate.html
Thanks