调用系统当前日期的API函数是什么?具体的用法有那几种?请赐教

解决方案 »

  1.   

    now.
    date.var datez:datetime
    begin
     datez:=now;//当年系统的年月日小时分钟秒
     datez:=date;//日期。只有系统的年月日,时间为'00:00:00'
    end;
      

  2.   

    为什么用api?now()不就可以了吗?
      

  3.   

    VOID GetLocalTime(
      LPSYSTEMTIME lpSystemTime   // address of system time structure
    );
    VOID GetSystemTime(
      LPSYSTEMTIME lpSystemTime   // address of system time structure
    );GetCurrentTime();