Question: how to calculate my age in years months and days in jquery?
Answer: The function getAge then becomes a thin implementation based on that class. This function will give the age in years, months and days. It works by calculating the difference in months first, then adding that number to the date of birth, and then calculating the difference in days.