请问各位大哥怎样才能计算出两个日期之间相差多少天?
比如计算2003-11-25 至 2003-11-20 之间相差5天。
比如计算2003-11-25 至 2003-11-20 之间相差5天。
解决方案 »
- delphi怎么执行telnet?不是简单的执行telnet,内详
- 新人50分求助-关于获取其他程序的窗体中edit的内容
- clientdataset做三层open时的奇怪问题?
- 谁有fastreport的正式版
- 取硬盘序号,CPUID,MAC老问题的新问法~~~
- formatdatetime 问题
- 请问access violation at address oo4e7010 in module'stcx.exe'.
- 2个问题:用函数调用Visula Foxpro打开dbf文件,另存为对话框用法?
- 急?在线等待,怎样能够在Delphi里实现以上同样的功能?
- 快点进来帮我看一看。。。。
- "select subString(dataA,"+beg+","+num+") as mem from databin where ver='"+newbbh+"'"错在什么地方
- delphi 窑洞 (51delphi)怎么下载软件呀? 先到先得!
DateUtils;function DaysBetween(const ANow, AThen: TDateTime): Integer;
DateUtils;两日期两减showmessage(inttostr(Trunc(datetimepicker1.Date)-Trunc(datetimepicker2.Date)));
begin
n:=daysbetween(DateTimePicker1.DateTime,DateTimePicker2.DateTime);
end;
DateUtils;function DaysBetween(const ANow, AThen: TDateTime): Integer;