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);

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. 

 

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