岁数是变化的啊,你存进去的只是某个时刻的年龄,真实的年龄应该是当前时间减生日,不如在网页上动态显示出来好,用javascritp就可以,我做了个小例子,按照出生后每到生日那天就加一岁<body>
<input type=text id=a value="1978-01-31">
<input type=text id=b value="2005-09-21">
<input type=button onclick=getAge(a.value,b.value)>
</body><script>
function getAge(birth,today){
var age=0
var y1=birth.substring(0,4)-0;
var y2=today.substring(0,4)-0;
var md1=birth.split("-")[1]+birth.split("-")[2]-0
var md2=today.split("-")[1]+today.split("-")[2]-0
//alert(md2+" "+md1)
if(md2>=md1)
   age+=1
age+=y2-y1
alert(age)
return age
}</script>