RT~~
是用控件还是使用api 函数啊?

解决方案 »

  1.   

    用DELPHI的函数就可以了
    Now
      

  2.   

    偶想知道的是,如何在控件中譬如是Edit 中显示系统时间....
    Edit1.text=Datastostr(now)好象编译不了啊?
      

  3.   

    now
    如果你想了解的详细一点,参见delphi的sysutils.pas
      

  4.   

    showmessage(DateTimeToStr(now));
      ShowMessage(FormatDateTime('yyyy-mm-dd hh:mm:ss',now));
      

  5.   

    Edit1.text:=FormatDateTime('yyyy-mm-dd hh:mm:ss',now());
      

  6.   

    Edit1.text=Datastostr(now)
    -----------------------
    datasttostr是什么函数?如果不是你自己写的..应该编译不过..
    用DateTimeToStr就可以了..
      

  7.   

    ShowMessage(FormatDateTime('yyyy-mm-dd hh:mm:ss',now));
      

  8.   

    这种问题我最喜欢了:)
    edit1.text:=datetimetostr(now);
      

  9.   

    Now,Date,Time 都可以Edit1.text := DateTimeToStr(Now())