I have a posting date filtering set by user.
If user set 01-08-07…3108-07, mine Cust. Ledger Entry.GetFilter(“Posting Date”) would retrieve value of 08-07 or Aug 07.
Eg: FilterText := Cust. Ledger Entry.GetFilter(“Posting Date”);
If Evaluate (FilterDate,FilterText) Then; //convert filter text to date format
Now I would like to FilterDate1 := CalcDate(’-1Y’, FilterDate) ?
It gave me an error:
You cannot base a date calculation on an undefined date.
Date : 0D