Search code examples
datesyntaxms-wordconstantssubtraction

Microsoft Word Subtract constant from date's year


How can I subtract a constant from the current date's year in Ms-Word?

Attempt

{ = {DATE\@"YYYY"} – 1983 \#"00" }

I keep getting: !Syntax Error, {


Solution

  • Try { = { Date @ "yyyy" } - 1983 }

    Or

    { = { Date \@ "yyyy" } - 1983 \# 00 }
    

    ALL of the field delimiter braces must be created using Ctrl+F9. That includes the ones for the Date field.

    See Word MVP Graham Mayor's macro or Add-In to convert text representations of fields to true fields.

    References: