谢谢 如果有求它的详细用法,谢谢

解决方案 »

  1.   

    有,在 DateUtils 里,自己找吧,那里的函数多的很,什么 DayOfWeek 啦什么的,应有尽有
      

  2.   

    请在uses里头声明uses DateUtils,以下是delphi help里头的说明:UnitDateUtilsCategorydatetime routinesDelphi syntax:function CompareDate(const A, B: TDateTime): TValueRelationship;C++ syntax:extern PACKAGE Types::TValueRelationship __fastcall CompareDate(const System::TDateTime A, const System::TDateTime B);DescriptionCall CompareDate to compare the two TDateTime values specified by A and B. CompareDate returns LessThanValue if A occurs on a day prior to the day specified by B.
    EqualsValue if A occurs on the same day as B, ignoring the time of day.
    GreaterThanValue if A occurs on a day that follows the day specified by B.