View Single Post
 
Old 01-09-2021, 09:37 AM
PM1 PM1 is offline Windows 10 Office 2013
Novice
 
Join Date: Sep 2020
Posts: 8
PM1 is on a distinguished road
Default CREATEDATE-1 gives wrong date.

Hi All,

I have a Word Template that uses the CREATEDATE \@ "dd/MM/yyyy" \* MERGEFORMAT field code.

I also have { Quote “1.{={CreateDate \@ "M"-1}.2000” \@MMM} which is supposed to subtract 1 from the creation date (MMM format) and put it alongside other text (e.g. xxx Total Monthly Cash Income, where xxx should be current month -1).

As an example in Dec 2020, I got Nov Total Monthly Cash Income,when the document was created on the 15/12/2020.

I create a new document on the 5/1/21, and I got Jan Total Monthly Cash Income, it should have been Dec.

Can anyone explain why this is not working as anticipated?

Basically, the month to be prefixed before the wording Total Monthly Cash Income, should always be the previous month.

Had no problem from mid year 2020 onwards (when the template was created).

Any help offered will be appreciated.

Reply With Quote