笨蛋
showmessage(inttostr(int(strtodatetime('2020-10-10')-strtodatetime('2002-11-11'))));
改为
showmessage(inttostr(round(strtodatetime('2020-10-10')-strtodatetime('2002-11-11'))));
显示出来654岁,你的分怎么给的.
showmessage(inttostr(strtoint(formatdatetime('yy', strtodatetime('2020-10-10')-strtodatetime('2002-11-11') + 2))));
也不正确,过了生日与没过生日都一样