var tt:tdatetime;
tt;=now;//取得现在日期时间

解决方案 »

  1.   

    使用getsystemtime函数,
    var
      systime:tsystemtime;
    begin
      getsystemtime(systime);
      caption:=inttostr(systime.wyear)+inttostr(systime.wmonth)...
    end;
    我 再说一下Tsystemtime
    tsystemtime=record   
      wyear:word;
      wmonth:word;
      wdayofweek:word;
      wday:word;
      whour:word;
      wminute:word;
      wsecond:word;
      wmillisenconds:word;
    end;
    行不?给分吧!
      

  2.   

    date 或者now都行
    showmessage(datetostr(date));
      

  3.   

    使用一个Timer控件,然后使用now函数!
      

  4.   

    NOw就行了
    不过设置系统时间
    BOOL SetSystemTime(
      CONST SYSTEMTIME *lpSystemTime   // system time
    );
    就得用API