Hello
It's been a while since I've used dateformular fields. You can't just add them.
So far I've basically done this. Convert it to string and concatenate it.
evaluate(DateFormularA,format(DateFormularB) + '+' +
format(DateFormularC));
So
DateFormularB := 2D;
DateFormularC := 2D;
then
DateFormularA := 2D + 2D;
And it works
Is there a better way to do this?
Ahmed Rashed Amini
Independent Consultant/Developer
blog:
https://dynamicsuser.net/nav/b/ara3n0
Comments
I tried even this:
still the same message, however Gives the number of days in the DataFormula1 - 2D gives 2 and 2M gives 61.
So theoretically you can sum 2 integers with number of days, get the difference, and add this difference to you existing date
On another hand, your approach is MUCH easier............ :whistle:
Oleg
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
It's worth it!
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!