Show: Delphi C++
Display Preferences

System.DateUtils.CompareDate

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function CompareDate(const A, B: TDateTime): TValueRelationship;

C++

extern DELPHI_PACKAGE System::Types::TValueRelationship __fastcall CompareDate(const System::TDateTime A, const System::TDateTime B);

Properties

Type Visibility Source Unit Parent
function public
System.DateUtils.pas
System.DateUtils.hpp
System.DateUtils System.DateUtils

Description

Indicates the relationship between the date portions of two TDateTime values.

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.

See Also


Code Examples

Personal tools
In Other Languages
Previous Versions
Assistance