本文整理自网络,侵删。
uses DateUtils;
vart1,t2:TDateTime;begint1:=StrToDate(Edit1.Text);t2:=StrToDate(Edit2.Text);
Caption:='两日bai期相du差'+IntToStr(DaysBetween(t1,t2))+'天dao';
相关阅读 >>
Delphi serial number of an usb flash drive 获取u盘硬件序列号
Delphi 获取指定年月的周、日数 -weeksinayear、weeksinyear、daysinayear、daysinamonth、daysinyear、daysinmonth
Delphi 使用 {$include} 或 {$i} 指令管理和调用自定义函数
更多相关阅读请进入《Delphi》频道 >>