假设计算年龄只考虑年份的话,这样写即可
假如需要考虑月份和年份一起的话,可以这样写:
拓展知识:
根据身份证号生成出生日期
根据身份证号生成出生日期和年龄
TimLi
This person is a lazy dog and has left nothing
Δ
Comments