//extract year from date var year = age_dt.getUTCFullYear();
//now calculate the age of the user var age = Math.abs(year - 1970);
//display the calculated age
return document.getElementById("result").innerHTML =
"Age is: " + age + " years. ";
}
}
Calculate Age from Date of Birth
Enter Date of Birth:
Published by GovtJobOnline Editorial Team
Updated Daily – Latest Govt Jobs & Education News
