const d1 = (new Date(1990, 11, 7)).toISOString().replace(/-/g, '') const d2 = (new Date()).toISOString().replace(/-/g, '') const age = Math.trunc((parseInt(d2) - parseInt(d1)) / 10000) alert(age) // 31?