hi mohana_cse06,
appreciate your testing and explanation, but i don't quite understand for situation 2 :d2, how is it able to output 2/11/11 instead of 2nd october 2011?
... but i don't quite understand for situation 2 :d2, how is it able to output 2/11/11 instead of 2nd october 2011?
D2 is the same as +D2 and looks for the next date matching the condition in the future. -D2 looks for it in the past. So
CALCDATE('<-D2>',TODAY) will give you 02/10/11, given TODAY = 21/10/11
But take care, "in the future" and "in the past" is to be taken literally:
+d2 on 02/10/11 will result in 02/11/11
-d2 on 02/10/11 will result in 02/09/11
Answers
D15 On the 15th of each month
for me it gave 2 diff results
Message('%1',CALCDATE('<2D>',TODAY)); = 23/10/11
Message('%1',CALCDATE('<D2>',TODAY)); =02/11/11
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
appreciate your testing and explanation, but i don't quite understand for situation 2 :d2, how is it able to output 2/11/11 instead of 2nd october 2011?
CALCDATE('<-D2>',TODAY) will give you 02/10/11, given TODAY = 21/10/11
But take care, "in the future" and "in the past" is to be taken literally:
+d2 on 02/10/11 will result in 02/11/11
-d2 on 02/10/11 will result in 02/09/11
More specifically, D2 means the "the next 'the second day'" (of the month)
11/02/11 = CALCDATE('D2',10/21/11)
I had never heard of using D2 before though...
you are right i did a test on navision already, confirm + warranty!
D2 := Last Day of current month + 2Day
2D := 2 day ahead of TODAY