不要把datetime当做字符串,其实它就是个浮点型的数字另外你那么做会出小数的,因为它是个浮点型的数字!!!!栈桥捉鳖 说的需要在 Sql语句中实现如果你还不明白label5.Caption:=floattostr((datetimepicker2.Date div 1) -(datetimepicker4.Date div 1)*0.2);或者label5.Caption:=floattostr(int(datetimepicker2.Date) -int(datetimepicker4.Date)*0.2);没调试过,大概就是这个意思另外 出了错多看调试信息,多调试,多看帮助