Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an CV and would like to automatically update my age when opening. So, what formula should I insert in a MS Word field?

Something like {= {DATE} - {"01/01/1983"} } ?

share|improve this question
    
As an aside, this is a big no-no in the UK now... Employment legislation has made it illegal for employers to discriminate on an age basis so ages and DOB on CVs is a thing of the past! – Shevek Apr 29 '10 at 9:49

It is possible inside a field but very complex. See this article and this article for more info.

The easiest way will be to use a macro.

share|improve this answer
    
I saw similar articles, but... not very clear there. Very complex to obtain difference between 2 dates? :"( – serhio Apr 28 '10 at 12:39
    
complex to do in a field code, easy to do in a macro. – Shevek Apr 28 '10 at 13:04
up vote 0 down vote accepted

{IF{DATE\@"MM"} >= 01 { = {DATE\@"YYYY"} – 1983 \#"00"} { = {DATE\@"YYYY"} – 1984 \#"00"}}

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .