var
   d:tdatetime;
   x:integer;
begin
     d:=strtodate('2000-01-01');
     d:=d+x;//x为你要的天数接下来就知道了吧!
     .........
end;

解决方案 »

  1.   

    SEE THE HELP!小时和分,当然是以整数表示天数,小数部分表示小时和分钟了,如:1。25
    等,DELPHI得帮助写的很清楚!
      

  2.   

    小时和分秒相当于:1小时=1/24
    分、秒就不用说了吧
    不过这样处理起来精确性会有点偏差最好用decodetime、decodedate、encodedate、encodetime函数来做较好。
      

  3.   

    select * from  table where  date  between "begindate" and "enddate"
      

  4.   

    用decodedate and incodedate  吧!!