![]() |
|
|
|
#1
|
|||
|
|||
|
If the date were the September 21, your formula would give you September 35.
Here is the field for 14 days from the CREATEDATE: { QUOTE "{ SET " Delay" "14" } { SET "DaysInMonth" { IF { CreateDate \@ "MM" } <> 2 { = ROUND(30.575*{ CreateDate \@ "MM" },0)- ROUND(30.575*{ = { CreateDate \@ "MM" } -1 },0) } { IF { = MOD( { CreateDate \@"yy" } , 4 ) } > 0 "28" "29" } } } { SET "NextMonth" { IF { CreateDate \@ "MM" } = 12 "1/97" "{ = { CreateDate \@ "MM"} + 1 }/97 } } { IF { = { REF "Delay" } + { CreateDate \@ "dd" } } <= {REF"DaysInMonth"} {CreateDate \@ "MMMM { = { REF "Delay" } + { CreateDate \@ "dd" } }, yyyy"}{ QUOTE { NextMonth \@ "MMMM" } { = { REF "Delay" } + { CreateDate \@ "dd" } - { REF"DaysInMonth" } }, { IF { CreateDate \@ "MM" } <> 12 { CreateDate \@ "yyyy" } { CreateDate \@ "{ = 1 + { CreateDate \@ "yyyy" } \# "xxxx" }" } } } }" } See Date Calculation Tutorial. Read the introductory parts and then find the field construction you need in the tutorial. You can simply copy it from the tutorial and paste into your document. Calculated Dates in Microsoft Word using Fields or vba (This is the page I copied the field from.) |
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Inserting a formula to count 30 days before and after a date in WORD table
|
bjh894 | Word | 9 | 05-18-2020 11:14 AM |
Date field - future date calculation + only business days
|
neon4 | Word | 7 | 01-21-2016 02:21 PM |
adding days to a date
|
euterpia | Excel | 1 | 01-18-2016 07:42 AM |
How do I get auto-updated "number of days since specified date" on MS word?
|
terry795 | Word | 16 | 01-07-2016 04:33 PM |
Date Field to add 10 Days to Current Date
|
Erbwon | Word | 6 | 11-12-2012 06:17 PM |