12-09-2019, 02:43 PM
|
|
Administrator
|
|
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
|
|
Using the Calculate a day, date, month and year, using n days delay example from the Microsoft Word Date Calculation Tutorial ( https://www.msofficeforums.com/word/...-tutorial.html), change:
Code:
{SET jd{=d+INT((153*c+2)/5)+365*b+INT(b/4)-INT(b/100)+INT(b/400)-32045+Delay}}
to:
Code:
{SET jd{=d+INT((153*c+2)/5)+365*b+INT(b/4)-INT(b/100)+INT(b/400)-32045}}
{SET jd{=jd+(MOD(jd,7)>1)*2+Delay}}
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|