-5
$\begingroup$

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

$\endgroup$
1
$\begingroup$
dob = "18.03.2000";

age = DateDifference[DateList[{dob, {"Day", "Month", "Year"}}], DateList[], "Year"]

18.8148 yr

| improve this answer | |
$\endgroup$
1
$\begingroup$
DateDifference[{2000, 3, 18}, Date[], "Year"]

18.814yr
| improve this answer | |
$\endgroup$

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