Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
1st function (find the last date for last month)
date((date(date(floor(monthend(addmonths(Today(),-1))),
2nd function ( to calculate diff between month of previous month and booking date for calculate the Aging)
date((date(date(floor(monthend(addmonths(Today(),-1))),
'DD/MM/YYYY'),'DD/MM/YYY')-date("Pstng Date",'DD/MM/YYYY')),'M') as 'AGING',
my question is there anyway to simplify my 2nd function, can i do it without copy paste whole 1st function