Find Your AGE



//convert the calculated difference in date format var age_dt = new Date(month_diff);

//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

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *