I am trying through a date that in js returns me the years and months that have passed, but I only get it to show me the days
$("#nacimiento").change(function(){
var nacimiento=$("#nacimiento").val();
var fechaInicio = new Date(nacimiento).getTime();
var fechaFin = new Date('<? echo date("Y-m-d");?>').getTime();
var diff = fechaFin - fechaInicio;
var tiempo=diff/(1000*60*60*24);
console.log(diff/(1000*60*60*24));
document.getElementById('meses').innerHTML=tiempo;
});