System.DateUtils.EndOfTheDay

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function EndOfTheDay(const AValue: TDateTime): TDateTime;

C++

extern DELPHI_PACKAGE System::TDateTime __fastcall EndOfTheDay(const System::TDateTime AValue);

Properties

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

Description

Returns a TDateTime that represents the last millisecond of the day identified by a specified TDateTime.

EndOfTheDay returns the last expressible moment of the same day as the TDateTime specified by AValue. That is, it replaces the time portion of AValue with 11:59:59.999 P.M. and returns the result.

See Also


Code Examples