10+ JavaScript Age Calculator Script

Age Calculator Script – Are you looking for Age Calculator Script, If yes then in this post I am going to share hand-picked Age Calculator Script for you. These all example are small yet useful Age Calculator written in jQuery that automatically calculates someone’s age based on the Date of Birth you provide. Age is very very common, the user will have to enter the date of birth and script need to calculate the age based on the date of birth. You can use these Age Calculator Script in your next web based projects.

Age Calculator Script

Following are the list of Age Calculator Script.

PHP Age Calculator Script

<?php  
function getAge($dob) {
  $today = date("Y-m-d");
  $diff = date_diff(date_create($dob), date_create($today));
  return $diff->format('%yYears, %mMonths, %dDays');
}
 
echo getAge('19-10-1988');
?>

JavaScript Age Calculator

function getAge(d1, d2){
    d2 = d2 || new Date();
    var diff = d2.getTime() - d1.getTime();
    return Math.floor(diff / (1000 * 60 * 60 * 24 * 365.25));
}
alert(getAge(new Date(1988, 10, 19)));

Age Calculator – JavaScript

Age Calculator - JavaScript

Age Calculator – JavaScript script made with HTML / CSS / JS and written By Rohit Kumar.




Age Calculator DEMO

 Age Calculator

– By tcraft


Age calculator DEMO

 Age calculator

– By urketadic



AGE CALCULATE DEMO

 AGE CALCULATE

– By acitjazz


Live Age Calculator DEMO

 Live Age Calculator

– By nikma


Age Calculator DEMO

 Age Calculator

– By dbetances


Exact Age Calculator DEMO

 Exact Age Calculator

– By Codeman12323


Age Calculator DEMO

 Age Calculator

– By Hanapotski


Age calculator DEMO

 Age calculator

– By ManalHamad



Age Calculator DEMO

 Age Calculator

– By vahin


JS – age calculator test DEMO

 JS - age calculator test

– By kimwsc


Age Calculator JS DEMO

 Age Calculator JS

– By NouranS96


React Age Calculator DEMO

 React Age Calculator

A simple age calculator to calculate the age. This calculator is not 100% accurate! – By hardik-chaudhary


I Hope you liked Hand-picked list of Age Calculator Script, Don’t forget to Subscribe My Public Notebook for more useful Hand-picked HTML and CSS code examples, tutorials and articles.