locked
Calculating difference between two date fields RRS feed

  • Question

  • Hi all,

    I am trying to figure out some date calculations in MS Word.

    I have a word document, and I would like to have the author enter in 2 dates in two fields.

    1. Date Of Birth

    2. Current date

    It would then take these two dates and calculate how old the person is.  It would display the result in another field:

    e.g. 3 example results are: 

    • 4 Months
    • 1 Year and 5 Months
    • 4 Years and 9 Months 

    I have been trying to figure out how to do this, and stumbled upon a resource located in the third party download apps of this website:

    http://www.gmayor.com/downloads.htm

    The DateCalc zip file contains an old document which would appear to have a field calculation to do exactly what i want it to do, however when i try and look at the code, my MS Word 2013 does not show me much when i press Shift-F9. So I cannot get it to work in my own document.

    Any ideas from anyone on how I could get this to work?

    Many Thanks

    • Edited by John_199 Wednesday, April 13, 2016 2:08 PM
    Wednesday, April 13, 2016 2:04 PM

Answers

All replies