获取年龄周岁(准确的)

FLOOR(datediff(DY,birthDay,GETDATE())/365.25) --SQL

ShowMessage(IntToStr(Trunc((StrToDateTime('2017-03-01')-StrToDateTime('2016-02-29'))/365.25)));//delphi

posted on 2017-01-26 19:43  金宝的博客  阅读(297)  评论(0)    收藏  举报

导航