Label1.Caption := 'Today is Day ' + FormatDatetime('dd of Month mm of Year yyyy', now);
Label2.Caption := 'The time is Minute ' + FormatDatetime('mm:ss of Hour hh', now);
Indicates the relationship between the date portions of two TDateTime values.
Unit
DateUtils
Category
datetime routines
Delphi syntax:
function CompareDate(const A, B: TDateTime): TValueRelationship;
C++ syntax:
extern PACKAGE Types::TValueRelationship __fastcall CompareDate(const System::TDateTime A,
const System::TDateTime B);
Description
Call 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.
//==============================
Returns the day of the month represented by a TDateTime value.