RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DateUtils.CompareDate Function

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

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

DateUtils

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. 

 

SameDate 

ConvUnitCompareValue 

CompareValue 

CompareDateTime 

CompareTime 

IsSameDay

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!