Calculate the date 6 months old from today, please advise with recipes
Discussion posts and replies are publicly visible
todate(concat(month(ri!date1)-6,"/",day(ri!date1),"/",year(ri!date1)))
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
edate(today(), -6)
Thanks
how to get past 3 year from now?