supportservice
Technical User
- Mar 12, 2012
- 63
What is the best way to replace the 366 days ago, as some months it might be 367, etc ... (31 days vs 30 Days, and Feb. with 28 or 29 days) to return a year ago from the date selected on the FromDate?
Code:
(IIf([PostingDate] Between Forms!DateSelector!FromDate-366 And Forms!DateSelector!ToDate-366,([CreditAmount])-[DebitAmount],0))