RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DateUtils.SameDate Function

Indicates whether two TDateTime values represent the same year, month, and day.

Pascal
function SameDate(const A: TDateTime; const B: TDateTime): Boolean;
C++
Boolean SameDate(const TDateTime A, const TDateTime B);

DateUtils

Call SameDate to determine whether the two TDateTime values specified by A and B represent the same date, ignoring the time portion. SameDate returns true if the two specified values occur on the same day, false otherwise. 

 

CompareDate 

ConvUnitSameValue 

SameValue 

SameDateTime 

SameTime 

IsSameDay

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