RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DateUtils.IsSameDay Function

Indicates whether a specified TDateTime value occurs on a the same day as a criterion date.

Pascal
function IsSameDay(const AValue: TDateTime; const ABasis: TDateTime): Boolean;
C++
Boolean IsSameDay(const TDateTime AValue, const TDateTime ABasis);

IsSameDay returns true if AValue occurs on the same day as ABasis. The time portions of AValue and ABasis can differ. 

IsSameDay returns false if the date portions of AValue and ABasis differ. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!