formatdatetime('yyyymmdd',date())
下面的问题俺不清楚.

解决方案 »

  1.   

    Returns Year, Month, and Day values for a TDateTime value.UnitSysutilsCategorydate/time routinesprocedure DecodeDate(Date: TDateTime; var Year, Month, Day: Word);DescriptionThe DecodeDate procedure breaks the value specified as the Date parameter into Year, Month, and Day values. If the given TDateTime value is less than or equal to zero, the year, month, and day return parameters are all set to zero.--------------------------------------------------------------------------------Breaks a TDateTime value into hours, minutes, seconds, and milliseconds.UnitSysutilsCategorydate/time routinesprocedure DecodeTime(Time: TDateTime; var Hour, Min, Sec, MSec: Word);DescriptionDecodeTime breaks the object specified as the Time parameter into hours, minutes, seconds, and milliseconds.