-5
$\begingroup$

How to calculate my age given my date of birth ? I have read other questions and answers but it is not satsified with the answers. My question is how do I calculate my current age if my birthdate is 18.03.2000?

$\endgroup$

closed as off-topic by J. M. will be back soon Mar 12 at 7:45

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "The question is out of scope for this site. The answer to this question requires either advice from Wolfram support or the services of a professional consultant." – J. M. will be back soon
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 5
    $\begingroup$ Is this about Wolfram Mathematica? $\endgroup$ – Kuba Jan 8 at 10:30
7
$\begingroup$

Assuming the question is related to Mathematica, the code would be

DateDifference["18.03.2000", Now,  "Years"]

enter image description here

Note that DateDifference is good at interpreting various formats of date. E.g. "2000-01-03"

$\endgroup$
  • 2
    $\begingroup$ You can specify units down to whatever granularity that you want, e.g., DateDifference["18.03.2000", Now, {"Years", "Months", "Days", "Hours", "Minutes", "Seconds"}] or DateDifference["18.03.2000", Now, {"Years", "Months", "Days"}] $\endgroup$ – Bob Hanlon Jan 9 at 5:02

Not the answer you're looking for? Browse other questions tagged or ask your own question.