SyntaxFix
Write A Post
Hire A Developer
Questions
JsFiddle
You can calculate with Dates.
var birthdate = new Date("1990/1/1"); var cur = new Date(); var diff = cur-birthdate; // This is the difference in milliseconds var age = Math.floor(diff/31557600000); // Divide by 1000*60*60*24*365.25