-7
$\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$
1
  • 5
    $\begingroup$ Is this about Wolfram Mathematica? $\endgroup$
    – Kuba
    Jan 8, 2019 at 10:30

1 Answer 1

9
$\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$
1
  • 3
    $\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, 2019 at 5:02

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