I've managed to calculate age using only "Year", but I would like to know how you can do this using a complete date ( YYMMDD ),
This is the code I used to calculate age using only year:
function Onclick() {
var Text1 = $("#Text1").val();
var datetoday = new Date();
var today = datetoday.getFullYear();
var datebirthday = new Date();
datebirthday.setFullYear(Text1);
var birthday = datebirthday.getFullYear();
var age = today - birthday;