Question: how to calculate age in years months and days in javascript?
Answer: Calculate the age using a text field diff(b)); var years = age. years(); var months = age. months(); "The age is " + years + " years " + months + " months "; In this calculation {dem_pat_birthyear} needs to be replaced with your variable name for birth year.