System.DateUtils.SameDate

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

extern DELPHI_PACKAGE bool __fastcall SameDate(const System::TDateTime A, const System::TDateTime B);

Properties

Type Visibility Source Unit Parent
function public
System.DateUtils.pas
System.DateUtils.hpp
System.DateUtils System.DateUtils

Description

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

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.

See Also


Code Examples