SameDate compares two TDateTime values A and B, to test whether they represent the same year, month, and day only. The time portion is completely ignored.
SameDate returns True if the two specified values represent the same date, and returns False if they are not the same.
Declaration: function SameDate(const A, B: TDateTime): Boolean;
A simple example showing a passed test and a failed test follows.