My customer has a special calendar table. He wants a function to copy all records to the next year (but keep the same day).
monday: 1 september 2008 --> monday: 31 august 2009
etc.
friday: 5 september 2008 --> friday: 4 september 2009
etc.
Can i use calcdate for this?
0
Answers
Try using CALCDATE('+52W', YourDate)
Harjot
CW returns the last day of the current week.
I didn't test it. Maybe it's You should try it.
RIS Plus, LLC
I tested it - If i enter an order today 10/02/2008 the due date is 10/01/2009
Terms = 1year = CW+1Y-1W
I tested it - If i enter an order today 10/02/2008 the due date is 09/28/2009
So it looks like your looking for +52W+1D
http://www.BiloBeauty.com
http://www.autismspeaks.org
RIS Plus, LLC
Either way he has a choice.
i guess then +1y-1d give you the same answer
Here's a oldie
Navision Data Calculator
http://www.mibuso.com/dlinfo.asp?FileID=514
http://www.BiloBeauty.com
http://www.autismspeaks.org
That's why I refered to the Date table.
I think it should be something like that... Then Date2."Period Start" is your new Date. Next year, same day of week.
http://www.BiloBeauty.com
http://www.autismspeaks.org
I guess it should be defined, something like "the date that has the same weekday, that is as close to 1 calendar year from the start date as possible".
RIS Plus, LLC
They are setting up a grow plan for plants. This needs to start the next year again on monday, ...
RIS Plus, LLC