I have the following formula causing problems,
IF MONTH(CurrentDate)= 1 THEN
DateTime ({@LastYear}-1,12,31,0 ,0 ,0 )
ELSE IF MONTH(CurrentDate)-1 IN [1,3,5,7,8,10,12] THEN
DateTime ({@CurrYear},MONTH(CurrentDate)-1,31,0 ,0 ,0 )
ELSE IF MONTH(CurrentDate)-1 IN [4,6,9,11] THEN...